test: refine dynamic pool shutdown test expectations
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Sun, 8 Sep 2024 14:49:37 +0000 (16:49 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Sun, 8 Sep 2024 14:49:37 +0000 (16:49 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
tests/pools/cluster/dynamic.test.mjs
tests/pools/thread/dynamic.test.mjs

index 1b854a65206717f98a7f0453a1df5abdec9b0ce7..e930c6d6a7dac42ecc41e24540c8dc5910f1b9aa 100644 (file)
@@ -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)
index 93d8b1f0cab6590e60edb061106d4d4b0851463f..6188abe2ca7be7cad3680c1dd9d7ddb6e209b911 100644 (file)
@@ -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)