Skip to content

Commit

Permalink
miner: fix potential goroutine leak in test (ethereum#26281)
Browse files Browse the repository at this point in the history
  • Loading branch information
BarrensZeppelin authored and MoonShiesty committed Aug 30, 2023
1 parent 1c261c3 commit b4ee806
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion miner/worker_test.go
Expand Up @@ -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) {
Expand Down

0 comments on commit b4ee806

Please sign in to comment.