refactor: simplify boomer runner

This commit is contained in:
debugtalk
2021-12-23 22:01:35 +08:00
parent 970734607e
commit 0c0c154a28
5 changed files with 65 additions and 137 deletions
+2 -2
View File
@@ -85,7 +85,7 @@ func TestLocalRunner(t *testing.T) {
}
tasks := []*Task{taskA}
runner := newLocalRunner(tasks, nil, 2, 2)
go runner.run()
go runner.start()
time.Sleep(4 * time.Second)
runner.close()
runner.stop()
}