X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Fpools%2Fcluster%2Ffixed.test.js;h=2ef709c1d0fc71fa3d6da9af508d8afa3859d5cf;hb=a38092895499e2e6e9f8c45bd12bdef3849897ff;hp=2a0a8e2e70f02e15839d89d972d433254ab744e6;hpb=a61a07243eee5cc54e7cf0d8e231202781f73f30;p=poolifier.git diff --git a/tests/pools/cluster/fixed.test.js b/tests/pools/cluster/fixed.test.js index 2a0a8e2e..2ef709c1 100644 --- a/tests/pools/cluster/fixed.test.js +++ b/tests/pools/cluster/fixed.test.js @@ -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 () => {