From: Jérôme Benoit Date: Wed, 31 May 2023 17:48:59 +0000 (+0200) Subject: test: remove not relevant test X-Git-Tag: v2.5.0~3^2~5 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=97f67da2ce86494fee0ddc545084b73fea6182ca;p=poolifier.git test: remove not relevant test Signed-off-by: Jérôme Benoit --- diff --git a/tests/pools/selection-strategies/worker-choice-strategy-context.test.js b/tests/pools/selection-strategies/worker-choice-strategy-context.test.js index 92b776f9..d40fae4e 100644 --- a/tests/pools/selection-strategies/worker-choice-strategy-context.test.js +++ b/tests/pools/selection-strategies/worker-choice-strategy-context.test.js @@ -415,61 +415,4 @@ describe('Worker choice strategy context test suite', () => { true ) }) - - it('Verify that worker choice strategy options enable median wait time pool statistics', () => { - const wwrWorkerChoiceStrategy = WorkerChoiceStrategies.WEIGHTED_ROUND_ROBIN - let workerChoiceStrategyContext = new WorkerChoiceStrategyContext( - fixedPool, - wwrWorkerChoiceStrategy, - { - medWaitTime: true - } - ) - expect( - workerChoiceStrategyContext.getRequiredStatistics().avgWaitTime - ).toBe(false) - expect( - workerChoiceStrategyContext.getRequiredStatistics().medWaitTime - ).toBe(true) - workerChoiceStrategyContext = new WorkerChoiceStrategyContext( - dynamicPool, - wwrWorkerChoiceStrategy, - { - medWaitTime: true - } - ) - expect( - workerChoiceStrategyContext.getRequiredStatistics().avgWaitTime - ).toBe(false) - expect( - workerChoiceStrategyContext.getRequiredStatistics().medWaitTime - ).toBe(true) - const fsWorkerChoiceStrategy = WorkerChoiceStrategies.FAIR_SHARE - workerChoiceStrategyContext = new WorkerChoiceStrategyContext( - fixedPool, - fsWorkerChoiceStrategy, - { - medWaitTime: true - } - ) - expect( - workerChoiceStrategyContext.getRequiredStatistics().avgWaitTime - ).toBe(false) - expect( - workerChoiceStrategyContext.getRequiredStatistics().medWaitTime - ).toBe(true) - workerChoiceStrategyContext = new WorkerChoiceStrategyContext( - dynamicPool, - fsWorkerChoiceStrategy, - { - medWaitTime: true - } - ) - expect( - workerChoiceStrategyContext.getRequiredStatistics().avgWaitTime - ).toBe(false) - expect( - workerChoiceStrategyContext.getRequiredStatistics().medWaitTime - ).toBe(true) - }) })