fix: unittest

This commit is contained in:
徐聪
2022-07-25 21:29:21 +08:00
parent 0b60b7a507
commit 2cdebbf448
7 changed files with 15 additions and 10 deletions
+1 -1
View File
@@ -196,7 +196,7 @@ func TestSpawnWorkersWithManyTasks(t *testing.T) {
const numToSpawn int64 = 30
go runner.spawnWorkers(numToSpawn, float64(numToSpawn), runner.stopChan, runner.spawnComplete)
time.Sleep(2 * time.Second)
time.Sleep(3 * time.Second)
currentClients := runner.controller.getCurrentClientsNum()