From: Jérôme Benoit Date: Mon, 3 Apr 2023 22:13:27 +0000 (+0200) Subject: test: fix FAIR_SHARE strategy in dynamic pool X-Git-Tag: v2.4.0-3~11 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=804a889e9e0b105a5426ba76e56f294b01729c83;p=poolifier.git test: fix FAIR_SHARE strategy in dynamic pool 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 dd420c7f..0d5832cd 100644 --- a/tests/pools/selection-strategies/selection-strategies.test.js +++ b/tests/pools/selection-strategies/selection-strategies.test.js @@ -432,7 +432,8 @@ describe('Selection strategies test suite', () => { ) // TODO: Create a better test to cover `FairShareChoiceStrategy#choose` const promises = [] - for (let i = 0; i < max * 2; i++) { + const maxMultiplier = 4 + for (let i = 0; i < max * maxMultiplier; i++) { promises.push(pool.execute()) } await Promise.all(promises)