p2p/discover: improve flaky revalidation tests (#30023)
This commit is contained in:
parent
c10ac4f48f
commit
a71f6f91fd
@ -135,7 +135,7 @@ func waitForRevalidationPing(t *testing.T, transport *pingRecorder, tab *Table,
|
|||||||
simclock.Run(tab.cfg.PingInterval * slowRevalidationFactor)
|
simclock.Run(tab.cfg.PingInterval * slowRevalidationFactor)
|
||||||
p := transport.waitPing(2 * time.Second)
|
p := transport.waitPing(2 * time.Second)
|
||||||
if p == nil {
|
if p == nil {
|
||||||
t.Fatal("Table did not send revalidation ping")
|
continue
|
||||||
}
|
}
|
||||||
if id == (enode.ID{}) || p.ID() == id {
|
if id == (enode.ID{}) || p.ID() == id {
|
||||||
return p
|
return p
|
||||||
|
Loading…
Reference in New Issue
Block a user