update call

This commit is contained in:
Roy Crihfield 2024-03-19 14:46:19 +08:00
parent 2062bac808
commit 152c5f6468

View File

@ -27,7 +27,11 @@ func TestTracker(t *testing.T) {
var prevPath []byte
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 {
return prevPath // tracker rewinds one node to prevent gaps
}