test: fix a UT
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 7 Apr 2023 18:06:32 +0000 (20:06 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 7 Apr 2023 18:06:32 +0000 (20:06 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
tests/pools/selection-strategies/selection-strategies.test.js

index 591b2c4d772a227676c469e0a857f4d8ca3a1a1d..b1599a99511a18ea180dc71521fc19d3c34ba17d 100644 (file)
@@ -650,7 +650,7 @@ describe('Selection strategies test suite', () => {
     const maxMultiplier =
       pool.workerChoiceStrategyContext.workerChoiceStrategies.get(
         WorkerChoiceStrategies.WEIGHTED_ROUND_ROBIN
-      ).defaultWorkerWeight * 2
+      ).defaultWorkerWeight * 50
     for (let i = 0; i < max * maxMultiplier; i++) {
       promises.push(pool.execute())
     }