From 97f67da2ce86494fee0ddc545084b73fea6182ca Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Wed, 31 May 2023 19:48:59 +0200 Subject: [PATCH] test: remove not relevant test MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- .../worker-choice-strategy-context.test.js | 57 ------------------- 1 file changed, 57 deletions(-) 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) - }) }) -- 2.34.1