Skip to content

Commit 5114a2b

Browse files
authored
Merge pull request #1997 from CortexFoundation/dev
fix error msg
2 parents 7ad3feb + 6df667b commit 5114a2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

p2p/discover/v4_udp_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,12 +282,12 @@ func TestUDPv4_findnode(t *testing.T) {
282282
waitNeighbors := func(want []*node) {
283283
test.waitPacketOut(func(p *v4wire.Neighbors, to *net.UDPAddr, hash []byte) {
284284
if len(p.Nodes) != len(want) {
285-
t.Errorf("wrong number of results: got %d, want %d", len(p.Nodes), bucketSize)
285+
t.Errorf("wrong number of results: got %d, want %d", len(p.Nodes), len(want))
286286
return
287287
}
288288
for i, n := range p.Nodes {
289289
if n.ID.ID() != want[i].ID() {
290-
t.Errorf("result mismatch at %d:\n got: %v\n want: %v", i, n, expected.entries[i])
290+
t.Errorf("result mismatch at %d:\n got: %v\n want: %v", i, n, expected.entries[i])
291291
}
292292
if !live[n.ID.ID()] {
293293
t.Errorf("result includes dead node %v", n.ID.ID())

0 commit comments

Comments
 (0)