From: Jérôme Benoit Date: Wed, 28 Aug 2024 13:20:42 +0000 (+0200) Subject: test: improve pool empty event test X-Git-Tag: v4.2.7~2 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=4b91b77184b873be455d65b91719f747bb460778;p=poolifier.git test: improve pool empty event test Signed-off-by: Jérôme Benoit --- diff --git a/tests/pools/abstract-pool.test.mjs b/tests/pools/abstract-pool.test.mjs index 77f7dc69..2e6ba76b 100644 --- a/tests/pools/abstract-pool.test.mjs +++ b/tests/pools/abstract-pool.test.mjs @@ -1386,12 +1386,12 @@ describe('Abstract pool test suite', () => { await waitPoolEvents(pool, PoolEvents.empty, 1) expect(poolEmpty).toBe(1) expect(poolInfo).toStrictEqual({ - busyWorkerNodes: expect.any(Number), + busyWorkerNodes: 0, defaultStrategy: WorkerChoiceStrategies.ROUND_ROBIN, executedTasks: expect.any(Number), executingTasks: expect.any(Number), failedTasks: expect.any(Number), - idleWorkerNodes: expect.any(Number), + idleWorkerNodes: 0, maxSize: numberOfWorkers, minSize: 0, ready: true,