Skip to content

Commit

Permalink
p2p/discover: fix panicky test
Browse files Browse the repository at this point in the history
  • Loading branch information
holiman committed Jun 7, 2022
1 parent 5e8fa1d commit 992c407
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 @@ -284,6 +284,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 992c407

Please sign in to comment.