Unverified Commit e24d6003 authored by Oskar Haarklou Veileborg's avatar Oskar Haarklou Veileborg Committed by GitHub

miner: fix potential goroutine leak in test (#26281)

parent c1aa1db6
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment