Skip to content

Commit

Permalink
miner: increase worker test timeout (#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 fjl committed Nov 13, 2019
1 parent 4ea9b62 commit 22e3bbb
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 22e3bbb

Please sign in to comment.