update call
This commit is contained in:
parent
2062bac808
commit
152c5f6468
@ -27,7 +27,11 @@ func TestTracker(t *testing.T) {
|
|||||||
|
|
||||||
var prevPath []byte
|
var prevPath []byte
|
||||||
count := 0
|
count := 0
|
||||||
for it := tr.Tracked(tree.NodeIterator(nil)); it.Next(true); {
|
nodeit, err := tree.NodeIterator(nil)
|
||||||
|
if err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
for it := tr.Tracked(nodeit); it.Next(true); {
|
||||||
if count == interrupt {
|
if count == interrupt {
|
||||||
return prevPath // tracker rewinds one node to prevent gaps
|
return prevPath // tracker rewinds one node to prevent gaps
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user