From ccc69a4dc6ce9ace2661c38e1cd243d701e6a650 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Mon, 23 Feb 2026 03:34:21 +0100 Subject: [PATCH] test: skip shutdown tests on CI --- tests/pools/cluster/dynamic.test.mjs | 6 +++++- tests/pools/cluster/fixed.test.mjs | 6 +++++- tests/pools/thread/dynamic.test.mjs | 6 +++++- tests/pools/thread/fixed.test.mjs | 6 +++++- 4 files changed, 20 insertions(+), 4 deletions(-) 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 -- 2.53.0