test: remove not relevant test
authorJérôme Benoit <jerome.benoit@sap.com>
Wed, 31 May 2023 17:48:59 +0000 (19:48 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Wed, 31 May 2023 17:48:59 +0000 (19:48 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
tests/pools/selection-strategies/worker-choice-strategy-context.test.js

index 92b776f95f092387ee48851c0cbca6e51364ea6d..d40fae4e028d8affa6375375b4f6d0d71eeafc47 100644 (file)
@@ -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)
-  })
 })