X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Fpools%2Fcluster%2Fdynamic.test.mjs;h=2a654b6a878cab03a4da44afb7200ca122acf0c1;hb=af7f2788b6fcc39343d544551cf17c8f0dc5b757;hp=93f995fcb4cfefd215ea90e348ec1e4023643745;hpb=76efd044dab6a7b3e1fd2d336ada3b4672d1235b;p=poolifier.git diff --git a/tests/pools/cluster/dynamic.test.mjs b/tests/pools/cluster/dynamic.test.mjs index 93f995fc..2a654b6a 100644 --- a/tests/pools/cluster/dynamic.test.mjs +++ b/tests/pools/cluster/dynamic.test.mjs @@ -37,10 +37,10 @@ describe('Dynamic cluster pool test suite', () => { expect(poolBusy).toBe(1) const numberOfExitEvents = await waitWorkerEvents(pool, 'exit', max - min) expect(numberOfExitEvents).toBe(max - min) + expect(pool.workerNodes.length).toBe(min) }) it('Verify scale worker up and down is working', async () => { - expect(pool.workerNodes.length).toBe(min) for (let i = 0; i < max * 2; i++) { pool.execute() } @@ -76,7 +76,7 @@ describe('Dynamic cluster pool test suite', () => { it('Validation of inputs test', () => { expect(() => new DynamicClusterPool(min)).toThrow( - "Cannot find the worker file 'undefined'" + 'The worker file path must be specified' ) })