From: Jérôme Benoit Date: Mon, 3 Apr 2023 22:37:41 +0000 (+0200) Subject: test: fix FAIR_SHARE strategy in dynamic pool (take 5) X-Git-Tag: v2.4.0-3~7 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=d2fdef84e55e543b28581ef94ca6892010e8600e;p=poolifier.git test: fix FAIR_SHARE strategy in dynamic pool (take 5) Signed-off-by: Jérôme Benoit --- diff --git a/tests/pools/selection-strategies/selection-strategies.test.js b/tests/pools/selection-strategies/selection-strategies.test.js index abef7e5b..dc5bc95f 100644 --- a/tests/pools/selection-strategies/selection-strategies.test.js +++ b/tests/pools/selection-strategies/selection-strategies.test.js @@ -432,7 +432,7 @@ describe('Selection strategies test suite', () => { ) // TODO: Create a better test to cover `FairShareChoiceStrategy#choose` const promises = [] - const maxMultiplier = 50 + const maxMultiplier = 1000 for (let i = 0; i < max * maxMultiplier; i++) { promises.push(pool.execute()) }