mirror of
https://github.com/status-im/op-geth.git
synced 2025-02-16 00:37:09 +00:00
eth, les: fix flaky tests (#20897)
* les: fix flaky test * eth: fix flaky test
This commit is contained in:
parent
3cf7d2e9a6
commit
f0b5eb09eb
@ -615,7 +615,7 @@ func testBroadcastBlock(t *testing.T, totalPeers, broadcastExpected int) {
|
|||||||
case <-doneCh:
|
case <-doneCh:
|
||||||
received++
|
received++
|
||||||
|
|
||||||
case <-time.After(100 * time.Millisecond):
|
case <-time.After(time.Second):
|
||||||
if received != broadcastExpected {
|
if received != broadcastExpected {
|
||||||
t.Errorf("broadcast count mismatch: have %d, want %d", received, broadcastExpected)
|
t.Errorf("broadcast count mismatch: have %d, want %d", received, broadcastExpected)
|
||||||
}
|
}
|
||||||
|
@ -140,7 +140,7 @@ func TestHandshake(t *testing.T) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("handshake failed, %v", err)
|
t.Fatalf("handshake failed, %v", err)
|
||||||
}
|
}
|
||||||
case <-time.NewTimer(100 * time.Millisecond).C:
|
case <-time.After(time.Second):
|
||||||
t.Fatalf("timeout")
|
t.Fatalf("timeout")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user