Skip to content

Commit

Permalink
p2p/discover: fix panicky test (ethereum#25038)
Browse files Browse the repository at this point in the history
  • Loading branch information
holiman authored and cp-wjhan committed Jun 8, 2023
1 parent 747c9eb commit e7deddd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions p2p/discover/v4_udp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ func TestUDPv4_findnode(t *testing.T) {
test.waitPacketOut(func(p *v4wire.Neighbors, to *net.UDPAddr, hash []byte) {
if len(p.Nodes) != len(want) {
t.Errorf("wrong number of results: got %d, want %d", len(p.Nodes), bucketSize)
return
}
for i, n := range p.Nodes {
if n.ID.ID() != want[i].ID() {
Expand Down

0 comments on commit e7deddd

Please sign in to comment.