Skip to content

Commit

Permalink
Merge pull request #148 from ipfs/test/capital
Browse files Browse the repository at this point in the history
feat: add upper-case keys at a known prefix
  • Loading branch information
Stebalien committed Feb 11, 2020
2 parents b72ac7e + b026bf4 commit ac8b6e6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/basic_tests.go
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,17 @@ func subtestQuery(t *testing.T, ds dstore.Datastore, q dsq.Query, count int) {
})
}

for i := 0; i < count; i++ {
s := fmt.Sprintf("/capital/%dKEY%d", i, i)
key := dstore.NewKey(s).String()
value := randValue()
input = append(input, dsq.Entry{
Key: key,
Size: len(value),
Value: value,
})
}

t.Logf("putting %d values", count)
for i, e := range input {
err := ds.Put(dstore.RawKey(e.Key), e.Value)
Expand Down

0 comments on commit ac8b6e6

Please sign in to comment.