X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Fpools%2Fselection-strategies%2Fworker-choice-strategy-context.test.mjs;h=2a5f914e9d89a3bf40828f3ef198482612422a0c;hb=1825833668c55e5638dc2e8d6ae711f69dba0181;hp=dc898e4ff04cd8ccb554a1215191896354757928;hpb=33d2304b9613b43bf8b1ee28de5bf1b8eada99c4;p=poolifier.git diff --git a/tests/pools/selection-strategies/worker-choice-strategy-context.test.mjs b/tests/pools/selection-strategies/worker-choice-strategy-context.test.mjs index dc898e4f..2a5f914e 100644 --- a/tests/pools/selection-strategies/worker-choice-strategy-context.test.mjs +++ b/tests/pools/selection-strategies/worker-choice-strategy-context.test.mjs @@ -98,14 +98,14 @@ describe('Worker choice strategy context test suite', () => { workerChoiceStrategyContext.workerChoiceStrategy, workerChoiceStrategyUndefinedStub ) - expect(() => workerChoiceStrategyContext.execute()).toThrowError( + expect(() => workerChoiceStrategyContext.execute()).toThrow( new Error('Worker node key chosen is null or undefined after 6 retries') ) workerChoiceStrategyContext.workerChoiceStrategies.set( workerChoiceStrategyContext.workerChoiceStrategy, workerChoiceStrategyNullStub ) - expect(() => workerChoiceStrategyContext.execute()).toThrowError( + expect(() => workerChoiceStrategyContext.execute()).toThrow( new Error('Worker node key chosen is null or undefined after 6 retries') ) })