From: Jérôme Benoit Date: Mon, 23 Feb 2026 02:34:21 +0000 (+0100) Subject: test: skip shutdown tests on CI X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=ccc69a4dc6ce9ace2661c38e1cd243d701e6a650;p=poolifier.git test: skip shutdown tests on CI --- diff --git a/tests/pools/cluster/dynamic.test.mjs b/tests/pools/cluster/dynamic.test.mjs index 1028b0007..8a204e1f7 100644 --- a/tests/pools/cluster/dynamic.test.mjs +++ b/tests/pools/cluster/dynamic.test.mjs @@ -74,7 +74,11 @@ describe('Dynamic cluster pool test suite', () => { expect(pool.workerNodes.length).toBe(min) }) - it('Shutdown test', async () => { + it('Shutdown test', { retry: 0 }, async ({ skip }) => { + if (process.env.CI) { + skip() + return + } const exitPromise = waitWorkerEvents(pool, 'exit', min) expect(pool.emitter.eventNames()).toStrictEqual([PoolEvents.busy]) let poolDestroy = 0 diff --git a/tests/pools/cluster/fixed.test.mjs b/tests/pools/cluster/fixed.test.mjs index 3f41c6e4c..b4a86e6f4 100644 --- a/tests/pools/cluster/fixed.test.mjs +++ b/tests/pools/cluster/fixed.test.mjs @@ -272,7 +272,11 @@ describe('Fixed cluster pool test suite', () => { expect(error.stack).toBeDefined() }) - it('Shutdown test', async () => { + it('Shutdown test', { retry: 0 }, async ({ skip }) => { + if (process.env.CI) { + skip() + return + } const exitPromise = waitWorkerEvents(pool, 'exit', numberOfWorkers) expect(pool.emitter.eventNames()).toStrictEqual([]) let poolDestroy = 0 diff --git a/tests/pools/thread/dynamic.test.mjs b/tests/pools/thread/dynamic.test.mjs index 21d880352..c55aa4435 100644 --- a/tests/pools/thread/dynamic.test.mjs +++ b/tests/pools/thread/dynamic.test.mjs @@ -74,7 +74,11 @@ describe('Dynamic thread pool test suite', () => { expect(pool.workerNodes.length).toBe(min) }) - it('Shutdown test', async () => { + it('Shutdown test', { retry: 0 }, async ({ skip }) => { + if (process.env.CI) { + skip() + return + } const exitPromise = waitWorkerEvents(pool, 'exit', min) expect(pool.emitter.eventNames()).toStrictEqual([PoolEvents.busy]) let poolDestroy = 0 diff --git a/tests/pools/thread/fixed.test.mjs b/tests/pools/thread/fixed.test.mjs index 48e0fcdaf..6806f9174 100644 --- a/tests/pools/thread/fixed.test.mjs +++ b/tests/pools/thread/fixed.test.mjs @@ -300,7 +300,11 @@ describe('Fixed thread pool test suite', () => { expect(error.stack).toBeDefined() }) - it('Shutdown test', async () => { + it('Shutdown test', { retry: 0 }, async ({ skip }) => { + if (process.env.CI) { + skip() + return + } const exitPromise = waitWorkerEvents(pool, 'exit', numberOfThreads) expect(pool.emitter.eventNames()).toStrictEqual([]) let poolDestroy = 0