refactor: simplify boomer runner

This commit is contained in:
debugtalk
2021-12-24 10:05:27 +08:00
parent dc2933550c
commit ac1fd28d96
8 changed files with 40 additions and 57 deletions
+2 -1
View File
@@ -84,7 +84,8 @@ func TestLocalRunner(t *testing.T) {
Name: "TaskA",
}
tasks := []*Task{taskA}
runner := newLocalRunner(tasks, nil, 2, 2)
runner := newLocalRunner(2, 2)
runner.setTasks(tasks)
go runner.start()
time.Sleep(4 * time.Second)
runner.stop()