From ff0b463113e7262ef15a6b717cde5704ff082c0c Mon Sep 17 00:00:00 2001 From: Guillaume Ballet Date: Wed, 13 Nov 2019 12:40:50 +0100 Subject: [PATCH] miner: increase worker test timeout (#20268) TestEmptyWork* occasionally fails due to timeout. Increase the timeout. --- miner/worker_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miner/worker_test.go b/miner/worker_test.go index 34f17e8a2432..ab70cbad1ad4 100644 --- a/miner/worker_test.go +++ b/miner/worker_test.go @@ -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") } }