p2p: fix error message in test

This commit is contained in:
Zach Brown 2025-09-30 18:27:58 +08:00 committed by GitHub
parent 2037c53e7a
commit bf5b809550
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -45,7 +45,7 @@ func TestReadNodesCycle(t *testing.T) {
nodes := ReadNodes(iter, 10) nodes := ReadNodes(iter, 10)
checkNodes(t, nodes, 3) checkNodes(t, nodes, 3)
if iter.count != 10 { if iter.count != 10 {
t.Fatalf("%d calls to Next, want %d", iter.count, 100) t.Fatalf("%d calls to Next, want %d", iter.count, 10)
} }
} }