mirror of
https://github.com/httprunner/httprunner.git
synced 2026-08-28 03:30:01 +08:00
refactor: simplify boomer runner
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user