From e7deddd81c14744309da38b845e56ffaad4048a1 Mon Sep 17 00:00:00 2001 From: Martin Holst Swende Date: Tue, 7 Jun 2022 12:15:22 +0200 Subject: [PATCH] p2p/discover: fix panicky test (#25038) --- p2p/discover/v4_udp_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/p2p/discover/v4_udp_test.go b/p2p/discover/v4_udp_test.go index f59175e5f348..aa8dd5c14647 100644 --- a/p2p/discover/v4_udp_test.go +++ b/p2p/discover/v4_udp_test.go @@ -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() {