X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Fpools%2Fcluster%2Fdynamic.test.js;h=44d543ec5c83c032241a988555f7bccdabbc8812;hb=0fe39c9754981258c5330fa20fb5ad6141340b33;hp=166b546db5bc147272672dff20cfc9d9600bbb8d;hpb=b8508dfc38a7612364981ad5b01811708193f9a2;p=poolifier.git diff --git a/tests/pools/cluster/dynamic.test.js b/tests/pools/cluster/dynamic.test.js index 166b546d..44d543ec 100644 --- a/tests/pools/cluster/dynamic.test.js +++ b/tests/pools/cluster/dynamic.test.js @@ -72,15 +72,15 @@ describe('Dynamic cluster pool test suite', () => { }) it('Should work even without opts in input', async () => { - const pool1 = new DynamicClusterPool( + const pool = new DynamicClusterPool( min, max, './tests/worker-files/cluster/testWorker.js' ) - const result = await pool1.execute() + const result = await pool.execute() expect(result).toStrictEqual({ ok: 1 }) // We need to clean up the resources after our test - await pool1.destroy() + await pool.destroy() }) it('Verify scale processes up and down is working when long executing task is used:hard', async () => {