eth, catalyst: fix flaky tests (#26153)

* eth/catalyst: fix time-dependent (flaky) test

* eth: increase timeout on TestTransactionPropagation
This commit is contained in:
Martin Holst Swende
2022-11-11 13:22:54 +01:00
committed by GitHub
parent c539bda166
commit ea65edaa28
2 changed files with 45 additions and 31 deletions
+1 -1
View File
@@ -451,7 +451,7 @@ func testTransactionPropagation(t *testing.T, protocol uint) {
select {
case event := <-txChs[i]:
arrived += len(event.Txs)
case <-time.After(time.Second):
case <-time.After(2 * time.Second):
t.Errorf("sink %d: transaction propagation timed out: have %d, want %d", i, arrived, len(txs))
timeout = true
}