From 56cafb22ca7c11d54532b19caa09db83762a7904 Mon Sep 17 00:00:00 2001 From: bugmaker9371 Date: Mon, 22 Apr 2024 03:19:36 +0000 Subject: [PATCH] p2p/discover: fix bug in `checkNodesEqual` --- p2p/discover/table_util_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/p2p/discover/table_util_test.go b/p2p/discover/table_util_test.go index 59045bf2a8..454f9f66f7 100644 --- a/p2p/discover/table_util_test.go +++ b/p2p/discover/table_util_test.go @@ -241,6 +241,8 @@ func checkNodesEqual(got, want []*enode.Node) error { goto NotEqual } } + } else { + return fmt.Errorf("length dismatch: got %d nodes, want %d nodes", len(got), len(want)) } return nil