mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
ethclient/simulated: add timeout to fix flaky test
This commit is contained in:
parent
d4f25b4dcf
commit
54c35d9581
1 changed files with 3 additions and 0 deletions
|
|
@ -230,6 +230,9 @@ func TestForkResendTx(t *testing.T) {
|
|||
|
||||
// 5.
|
||||
sim.Commit()
|
||||
// The new-head-event needs to trickle out to the tx pool(s), so they reset
|
||||
// their internal state.
|
||||
time.Sleep(1 * time.Second)
|
||||
if err := client.SendTransaction(ctx, tx); err != nil {
|
||||
t.Fatalf("sending transaction: %v", err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue