From 22e3bbbf0aa711fcab3876ac1a34b8cdff8a0ccd 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 34f17e8a2..ab70cbad1 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") } }