p2p/discover: fix flaky test

This commit is contained in:
Felix Lange 2024-05-23 11:36:50 +02:00
parent de7e1c7d31
commit 4ace554209

View file

@ -363,6 +363,9 @@ func TestTable_revalidateSyncRecord(t *testing.T) {
n2 := enode.SignNull(&r, id) n2 := enode.SignNull(&r, id)
transport.updateRecord(n2) 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()) waitForRevalidationPing(t, transport, tab, n2.ID())
intable := tab.getNode(id) intable := tab.getNode(id)