From 4ace55420900d484af40e886bb4f09927e209d41 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Thu, 23 May 2024 11:36:50 +0200 Subject: [PATCH] p2p/discover: fix flaky test --- p2p/discover/table_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/p2p/discover/table_test.go b/p2p/discover/table_test.go index 8b11a32d5c..f72ecd94c9 100644 --- a/p2p/discover/table_test.go +++ b/p2p/discover/table_test.go @@ -363,6 +363,9 @@ func TestTable_revalidateSyncRecord(t *testing.T) { n2 := enode.SignNull(&r, id) transport.updateRecord(n2) + // Wait for revalidation. We wait for the node to be revalidated two times + // in order to synchronize with the update in the able. + waitForRevalidationPing(t, transport, tab, n2.ID()) waitForRevalidationPing(t, transport, tab, n2.ID()) intable := tab.getNode(id)