Fix missed Promise.all usage in tests
[poolifier.git] / tests / pools / thread / fixed.test.js
index 9af4417c2fa5b61fcd130a00319adca7c3fe05ff..785c6e5d2d01c8801c0e34e1d33bc292bd543347 100644 (file)
@@ -74,7 +74,6 @@ describe('Fixed thread pool test suite', () => {
     for (let i = 0; i < numberOfThreads * 2; i++) {
       promises.push(pool.execute({ test: 'test' }))
     }
-    // await Promise.all(promises)
     // The `busy` event is triggered when the number of submitted tasks at once reach the number of fixed pool workers.
     // So in total numberOfThreads + 1 times for a loop submitting up to numberOfThreads * 2 tasks to the fixed pool.
     expect(poolBusy).toBe(numberOfThreads + 1)