Skip to content

Commit 1221134

Browse files
Fix formatting errors
1 parent 2b8ca23 commit 1221134

2 files changed

Lines changed: 17 additions & 17 deletions

File tree

.trunk/trunk.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ cli:
88
plugins:
99
sources:
1010
- id: trunk
11-
ref: v1.7.2
11+
ref: v1.7.6
1212
uri: https://github.com/trunk-io/plugins
1313

1414
# Many linters and tools depend on runtimes - configure them here. (https://docs.trunk.io/runtimes)
@@ -26,25 +26,25 @@ lint:
2626
- contrib/**
2727
- protos/pb/pb.pb.go
2828
enabled:
29-
- taplo@0.8.0
29+
- taplo@0.10.0
3030
31-
- golangci-lint2@2.4.0
31+
- golangci-lint2@2.11.4
3232
33-
34-
33+
34+
3535
3636
- git-diff-check
3737
38-
- hadolint@2.12.1-beta
38+
- hadolint@2.14.0
3939
40-
- osv-scanner@2.2.2
41-
- oxipng@9.1.5
40+
- osv-scanner@2.3.5
41+
- oxipng@10.1.0
4242
4343
4444
4545
46-
- tflint@0.59.1
47-
- trufflehog@3.90.5
46+
- tflint@0.61.0
47+
- trufflehog@3.94.1
4848
4949
actions:
5050
enabled:

tok/hnsw/persistent_hnsw_test.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -160,18 +160,18 @@ func flatInMemListWriteMutation(test flatInMemListAddMutationTest, t *testing.T)
160160
// should not modify db [test.startTs, test.finishTs)
161161
if string(tsDbs[test.finishTs-1].inMemTestDb[test.key]) != string(tsDbs[test.startTs].inMemTestDb[test.key]) {
162162
t.Errorf(
163-
"Database at time %q not equal to expected database at time %q. Expected: %q, Got: %q",
163+
"Database at time %d not equal to expected database at time %d. Expected: %q, Got: %q",
164164
test.finishTs-1, test.startTs,
165165
tsDbs[test.startTs].inMemTestDb[test.key],
166166
tsDbs[test.finishTs-1].inMemTestDb[test.key])
167167
}
168168
if string(tsDbs[test.finishTs].inMemTestDb[test.key][:]) != string(test.t.Value[:]) {
169-
t.Errorf("The database at time %q for key %q gave value of %q instead of %q", test.finishTs,
169+
t.Errorf("The database at time %d for key %q gave value of %q instead of %q", test.finishTs,
170170
test.key, string(tsDbs[test.finishTs].inMemTestDb[test.key][:]), string(test.t.Value[:]))
171171
}
172172
if string(tsDbs[test.finishTs].inMemTestDb[test.key][:]) !=
173173
string(tsDbs[99].inMemTestDb[test.key][:]) {
174-
t.Errorf("The database at time %q for key %q gave value of %q instead of %q", test.finishTs,
174+
t.Errorf("The database at time %d for key %q gave value of %q instead of %q", test.finishTs,
175175
test.key, string(tsDbs[99].inMemTestDb[test.key][:]),
176176
string(tsDbs[test.finishTs].inMemTestDb[test.key][:]))
177177
}
@@ -232,11 +232,11 @@ func TestFlatInMemListAddMultipleWritesMutation(t *testing.T) {
232232
} else {
233233
if string(tsDbs[test.finishTs-1].inMemTestDb[test.key][:]) !=
234234
string(flatInMemListAddMultipleWritesMutationTests[test.currIteration-1].t.Value[:]) {
235-
t.Errorf("The database at time %q for key %q gave value of %q instead of %q", test.finishTs,
235+
t.Errorf("The database at time %d for key %q gave value of %q instead of %q", test.finishTs,
236236
test.key, string(tsDbs[test.finishTs].inMemTestDb[test.key][:]), string(test.t.Value[:]))
237237
}
238238
if string(tsDbs[test.finishTs].inMemTestDb[test.key][:]) != string(test.t.Value[:]) {
239-
t.Errorf("The database at time %q for key %q gave value of %q instead of %q", test.finishTs,
239+
t.Errorf("The database at time %d for key %q gave value of %q instead of %q", test.finishTs,
240240
test.key, string(tsDbs[test.finishTs].inMemTestDb[test.key][:]), string(test.t.Value[:]))
241241
}
242242
}
@@ -357,7 +357,7 @@ func TestFlatEntryInsertToPersistentFlatStorage(t *testing.T) {
357357
entryKey := DataKey(ConcatStrings(flatPh.pred, VecEntry), 1)
358358
entryVal := BytesToUint64(tsDbs[99].inMemTestDb[string(entryKey[:])])
359359
if entryVal != test.inUuid {
360-
t.Errorf("entry value stored is incorrect. Expected: %q, Got: %q", test.inUuid, entryVal)
360+
t.Errorf("entry value stored is incorrect. Expected: %d, Got: %d", test.inUuid, entryVal)
361361
}
362362
}
363363
}
@@ -418,7 +418,7 @@ func TestNonflatEntryInsertToPersistentFlatStorage(t *testing.T) {
418418
entryKey := DataKey(ConcatStrings(flatPh.pred, VecEntry), 1)
419419
entryVal := BytesToUint64(tsDbs[99].inMemTestDb[string(entryKey[:])])
420420
if entryVal != 5 {
421-
t.Errorf("entry value stored is incorrect. Expected: %q, Got: %q", 5, entryVal)
421+
t.Errorf("entry value stored is incorrect. Expected: %d, Got: %d", 5, entryVal)
422422
}
423423
for i := range tsDbs {
424424
key := DataKey(flatPh.pred, test.inUuid)

0 commit comments

Comments
 (0)