mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
p2p/discover: fix flaky test
This commit is contained in:
parent
de7e1c7d31
commit
4ace554209
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue