fix: unittest

This commit is contained in:
徐聪
2022-07-25 21:30:01 +08:00
parent 683c0e5374
commit 8fa04335e9
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -193,7 +193,7 @@ func TestSpawnWorkersWithManyTasks(t *testing.T) {
runner.setTasks(tasks)
runner.client = newClient("localhost", 5557, runner.nodeID)
const numToSpawn int64 = 30
const numToSpawn int64 = 20
go runner.spawnWorkers(numToSpawn, float64(numToSpawn), runner.stopChan, runner.spawnComplete)
time.Sleep(3 * time.Second)