p2p/discover: improve flaky revalidation tests (#30023)

pull/30045/head
Halimao 3 months ago committed by GitHub
parent c10ac4f48f
commit a71f6f91fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      p2p/discover/table_test.go

@ -135,7 +135,7 @@ func waitForRevalidationPing(t *testing.T, transport *pingRecorder, tab *Table,
simclock.Run(tab.cfg.PingInterval * slowRevalidationFactor)
p := transport.waitPing(2 * time.Second)
if p == nil {
t.Fatal("Table did not send revalidation ping")
continue
}
if id == (enode.ID{}) || p.ID() == id {
return p

Loading…
Cancel
Save