Skip to content

Commit

Permalink
p2p/discover: improve flaky revalidation tests (#30023)
Browse files Browse the repository at this point in the history
  • Loading branch information
Halimao authored and ucwong committed Jun 21, 2024
1 parent 20b3d34 commit ba9faa3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p2p/discover/table_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ba9faa3

Please sign in to comment.