From d2265a1e2fc64a3ebc4aa8c3fb4fb6a313fa6acb Mon Sep 17 00:00:00 2001 From: Oskar Haarklou Veileborg Date: Fri, 2 Dec 2022 12:26:52 +0100 Subject: [PATCH] miner: fix potential goroutine leak in test (#26281) --- 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 859495d7bf169..9c7961f7866d5 100644 --- a/miner/worker_test.go +++ b/miner/worker_test.go @@ -328,7 +328,7 @@ func TestStreamUncleBlock(t *testing.T) { w, b := newTestWorker(t, ethashChainConfig, ethash, rawdb.NewMemoryDatabase(), 1) defer w.close() - var taskCh = make(chan struct{}) + var taskCh = make(chan struct{}, 3) taskIndex := 0 w.newTaskHook = func(task *task) {