mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-17 21:46:36 +00:00
miner: fix potential goroutine leak in test (#26281)
This commit is contained in:
parent
c1aa1db69e
commit
e24d6003b1
1 changed files with 1 additions and 1 deletions
|
|
@ -328,7 +328,7 @@ func TestStreamUncleBlock(t *testing.T) {
|
||||||
w, b := newTestWorker(t, ethashChainConfig, ethash, rawdb.NewMemoryDatabase(), 1)
|
w, b := newTestWorker(t, ethashChainConfig, ethash, rawdb.NewMemoryDatabase(), 1)
|
||||||
defer w.close()
|
defer w.close()
|
||||||
|
|
||||||
var taskCh = make(chan struct{})
|
var taskCh = make(chan struct{}, 3)
|
||||||
|
|
||||||
taskIndex := 0
|
taskIndex := 0
|
||||||
w.newTaskHook = func(task *task) {
|
w.newTaskHook = func(task *task) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue