Commit 1c80d6a1 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 1a1c5941
...@@ -208,6 +208,7 @@ func xverifyΔBTail(t *testing.T, db *zodb.DB, treeRoot zodb.Oid, at1, at2 zodb. ...@@ -208,6 +208,7 @@ func xverifyΔBTail(t *testing.T, db *zodb.DB, treeRoot zodb.Oid, at1, at2 zodb.
sort.Slice(keyv1, func(i, j int) bool { sort.Slice(keyv1, func(i, j int) bool {
return keyv1[i] < keyv1[j] return keyv1[i] < keyv1[j]
}) })
keyv1 = append(keyv1, 10000) // inf, simulating ZBigFile.Size() query
for kidx := range IntSets(len(keyv1)) { for kidx := range IntSets(len(keyv1)) {
keys := make([]Key, len(kidx)) keys := make([]Key, len(kidx))
for _, i := range kidx { for _, i := range kidx {
...@@ -250,7 +251,7 @@ func xverifyΔBTail1(t *testing.T, db *zodb.DB, treeRoot zodb.Oid, at1,at2 zodb. ...@@ -250,7 +251,7 @@ func xverifyΔBTail1(t *testing.T, db *zodb.DB, treeRoot zodb.Oid, at1,at2 zodb.
d12 := kvdiff(kv1, kv2) d12 := kvdiff(kv1, kv2)
fmt.Println("d12:", d12) fmt.Println("d12:", d12)
if len(d12) == 0 { if len(d12) == 0 && len(initialTrackedKeys) == 0 {
assert.Equal(len(δB.ByRoot), 0) assert.Equal(len(δB.ByRoot), 0)
return return
} }
......
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