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)