test: remove unneeded sleep
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Tue, 19 Dec 2023 18:01:35 +0000 (19:01 +0100)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Tue, 19 Dec 2023 18:01:35 +0000 (19:01 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
tests/pools/selection-strategies/selection-strategies.test.mjs

index 127377a26118c5d5be57cf98661eb9139fe5d81f..ff1f499fc8bbba5d4bc941ae42f5e82800c8c913 100644 (file)
@@ -7,7 +7,6 @@ import {
   WorkerChoiceStrategies
 } from '../../../lib/index.js'
 import { CircularArray } from '../../../lib/circular-array.js'
-import { sleep } from '../../test-utils.js'
 
 describe('Selection strategies test suite', () => {
   const min = 0
@@ -181,7 +180,6 @@ describe('Selection strategies test suite', () => {
       max,
       './tests/worker-files/thread/testWorker.mjs'
     )
-    await sleep(600)
     expect(pool.starting).toBe(false)
     expect(pool.workerNodes.length).toBe(min)
     const maxMultiplier = 10000