Skip to content

Commit

Permalink
miner: increase worker test timeout (ethereum#20268)
Browse files Browse the repository at this point in the history
TestEmptyWork* occasionally fails due to timeout. Increase the timeout.
  • Loading branch information
gballet authored and enriquefynn committed Feb 15, 2021
1 parent 69c2e98 commit 3d7630a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion miner/worker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ func testEmptyWork(t *testing.T, chainConfig *params.ChainConfig, engine consens
for i := 0; i < 2; i += 1 {
select {
case <-taskCh:
case <-time.NewTimer(4 * time.Second).C:
case <-time.NewTimer(30 * time.Second).C:
t.Error("new task timeout")
}
}
Expand Down

0 comments on commit 3d7630a

Please sign in to comment.