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

pull/26296/head
Oskar Haarklou Veileborg 2 years ago committed by GitHub
parent c1aa1db69e
commit e24d6003b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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) {

Loading…
Cancel
Save