From: Jérôme Benoit Date: Sun, 8 Sep 2024 14:49:37 +0000 (+0200) Subject: test: refine dynamic pool shutdown test expectations X-Git-Tag: v4.2.11~9 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=fc43a5150338466915bc57705d00bd0e5255eac7;p=poolifier.git test: refine dynamic pool shutdown test expectations Signed-off-by: Jérôme Benoit --- diff --git a/tests/pools/cluster/dynamic.test.mjs b/tests/pools/cluster/dynamic.test.mjs index 1b854a65..e930c6d6 100644 --- a/tests/pools/cluster/dynamic.test.mjs +++ b/tests/pools/cluster/dynamic.test.mjs @@ -82,6 +82,7 @@ describe('Dynamic cluster pool test suite', () => { PoolEvents.destroy, ]) expect(pool.readyEventEmitted).toBe(false) + expect(pool.emptyEventEmitted).toBe(false) expect(pool.fullEventEmitted).toBe(false) expect(pool.busyEventEmitted).toBe(false) expect(pool.backPressureEventEmitted).toBe(false) diff --git a/tests/pools/thread/dynamic.test.mjs b/tests/pools/thread/dynamic.test.mjs index 93d8b1f0..6188abe2 100644 --- a/tests/pools/thread/dynamic.test.mjs +++ b/tests/pools/thread/dynamic.test.mjs @@ -82,6 +82,7 @@ describe('Dynamic thread pool test suite', () => { PoolEvents.destroy, ]) expect(pool.readyEventEmitted).toBe(false) + expect(pool.emptyEventEmitted).toBe(false) expect(pool.fullEventEmitted).toBe(false) expect(pool.busyEventEmitted).toBe(false) expect(pool.backPressureEventEmitted).toBe(false)