Add UTs for SelectionStrategiesUtils
[poolifier.git] / tests / pools / cluster / fixed.test.js
index 2a0a8e2e70f02e15839d89d972d433254ab744e6..2ef709c1d0fc71fa3d6da9af508d8afa3859d5cf 100644 (file)
@@ -130,8 +130,8 @@ describe('Fixed cluster pool test suite', () => {
   it('Shutdown test', async () => {
     const exitPromise = TestUtils.waitExits(pool, numberOfWorkers)
     await pool.destroy()
-    const res = await exitPromise
-    expect(res).toBe(numberOfWorkers)
+    const numberOfExitEvents = await exitPromise
+    expect(numberOfExitEvents).toBe(numberOfWorkers)
   })
 
   it('Should work even without opts in input', async () => {