Unverified Commit ac8b6e68 authored by Steven Allen's avatar Steven Allen Committed by GitHub

Merge pull request #148 from ipfs/test/capital

feat: add upper-case keys at a known prefix
parents b72ac7e0 b026bf40
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment