Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

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 elizabethengelman committed Dec 30, 2019
1 parent 539ca8c commit ff0b463
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 ff0b463

Please sign in to comment.