Skip to content

Commit 403624a

Browse files
authored
p2p/discover: fix panicky test (ethereum#25038)
1 parent 5e8fa1d commit 403624a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

p2p/discover/v4_udp_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ func TestUDPv4_findnode(t *testing.T) {
284284
test.waitPacketOut(func(p *v4wire.Neighbors, to *net.UDPAddr, hash []byte) {
285285
if len(p.Nodes) != len(want) {
286286
t.Errorf("wrong number of results: got %d, want %d", len(p.Nodes), bucketSize)
287+
return
287288
}
288289
for i, n := range p.Nodes {
289290
if n.ID.ID() != want[i].ID() {

0 commit comments

Comments
 (0)