X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Fpools%2Fcluster%2Fdynamic.test.mjs;h=166498f9a0b0c4c7a9f4a997f3d296518e3ca457;hb=bcfb06ce041a682baf396a099c633a848d6a4045;hp=a60d95fa82accd3085c2dc352d6e89f60c6db304;hpb=66f0c14c082ad6013dd1ca8e2a45a61c8295bc23;p=poolifier.git diff --git a/tests/pools/cluster/dynamic.test.mjs b/tests/pools/cluster/dynamic.test.mjs index a60d95fa..166498f9 100644 --- a/tests/pools/cluster/dynamic.test.mjs +++ b/tests/pools/cluster/dynamic.test.mjs @@ -119,8 +119,9 @@ describe('Dynamic cluster pool test suite', () => { await waitWorkerEvents(longRunningPool, 'exit', max - min) expect(longRunningPool.workerNodes.length).toBe(min) expect( - longRunningPool.workerChoiceStrategyContext.workerChoiceStrategies.get( - longRunningPool.workerChoiceStrategyContext.workerChoiceStrategy + longRunningPool.workerChoiceStrategiesContext.workerChoiceStrategies.get( + longRunningPool.workerChoiceStrategiesContext + .defaultWorkerChoiceStrategy ).nextWorkerNodeKey ).toBeLessThan(longRunningPool.workerNodes.length) // We need to clean up the resources after our test