Skip to content

Commit ac8b6e6

Browse files
authored
Merge pull request #148 from ipfs/test/capital
feat: add upper-case keys at a known prefix
2 parents b72ac7e + b026bf4 commit ac8b6e6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/basic_tests.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,17 @@ func subtestQuery(t *testing.T, ds dstore.Datastore, q dsq.Query, count int) {
405405
})
406406
}
407407

408+
for i := 0; i < count; i++ {
409+
s := fmt.Sprintf("/capital/%dKEY%d", i, i)
410+
key := dstore.NewKey(s).String()
411+
value := randValue()
412+
input = append(input, dsq.Entry{
413+
Key: key,
414+
Size: len(value),
415+
Value: value,
416+
})
417+
}
418+
408419
t.Logf("putting %d values", count)
409420
for i, e := range input {
410421
err := ds.Put(dstore.RawKey(e.Key), e.Value)

0 commit comments

Comments
 (0)