From: Jérôme Benoit Date: Tue, 11 Jul 2023 16:31:54 +0000 (+0200) Subject: test: refine expectations X-Git-Tag: v2.6.15~5 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=b56c2ee50ed3b58219552e7138e638dfce62da01;p=poolifier.git test: refine expectations Signed-off-by: Jérôme Benoit --- diff --git a/tests/pools/abstract/abstract-pool.test.js b/tests/pools/abstract/abstract-pool.test.js index 2c8d2318..62c46184 100644 --- a/tests/pools/abstract/abstract-pool.test.js +++ b/tests/pools/abstract/abstract-pool.test.js @@ -655,9 +655,7 @@ describe('Abstract pool test suite', () => { } }) expect(workerNode.usage.tasks.executed).toBeGreaterThan(0) - expect(workerNode.usage.tasks.executed).toBeLessThanOrEqual( - numberOfWorkers * maxMultiplier - ) + expect(workerNode.usage.tasks.executed).toBeLessThanOrEqual(maxMultiplier) expect(workerNode.usage.runTime.history.length).toBe(0) expect(workerNode.usage.waitTime.history.length).toBe(0) expect(workerNode.usage.elu.idle.history.length).toBe(0)