X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=tests%2Fpools%2Fcluster%2Fdynamic.test.js;h=a6d0b5942e00585e82e2b67e5c6cc87e027ac365;hb=4e377863ebacc8cead467297d0365e93dec491c3;hp=753f59af309dfd1e83053f0e1496682f118bb7dd;hpb=920278a2effe40d24c8832ccee0110f0bab1db19;p=poolifier.git diff --git a/tests/pools/cluster/dynamic.test.js b/tests/pools/cluster/dynamic.test.js index 753f59af..a6d0b594 100644 --- a/tests/pools/cluster/dynamic.test.js +++ b/tests/pools/cluster/dynamic.test.js @@ -77,7 +77,7 @@ describe('Dynamic cluster pool test suite', () => { './tests/worker-files/cluster/testWorker.js' ) const result = await pool1.execute() - expect(result).toBe(false) + expect(result).toStrictEqual({ ok: 1 }) // We need to clean up the resources after our test await pool1.destroy() }) @@ -103,7 +103,7 @@ describe('Dynamic cluster pool test suite', () => { expect( longRunningPool.workerChoiceStrategyContext.workerChoiceStrategies.get( longRunningPool.workerChoiceStrategyContext.workerChoiceStrategy - ).nextWorkerNodeId + ).nextWorkerNodeKey ).toBeLessThan(longRunningPool.workerNodes.length) // We need to clean up the resources after our test await longRunningPool.destroy()