From 7cb5dbdb754c0719320c4be3fd38223f609efa0b Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Fri, 17 May 2024 14:41:58 +0200 Subject: [PATCH] test: refine cluster settings test MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- tests/pools/cluster/fixed.test.mjs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tests/pools/cluster/fixed.test.mjs b/tests/pools/cluster/fixed.test.mjs index a2fd1b6a..0397c797 100644 --- a/tests/pools/cluster/fixed.test.mjs +++ b/tests/pools/cluster/fixed.test.mjs @@ -287,6 +287,10 @@ describe('Fixed cluster pool test suite', () => { let pool = new FixedClusterPool(numberOfWorkers, workerFilePath) expect(pool.opts.env).toBeUndefined() expect(pool.opts.settings).toBeUndefined() + expect(cluster.settings).toMatchObject({ + exec: workerFilePath, + silent: false + }) await pool.destroy() pool = new FixedClusterPool(numberOfWorkers, workerFilePath, { env: { TEST: 'test' }, @@ -297,11 +301,6 @@ describe('Fixed cluster pool test suite', () => { args: ['--use', 'http'], silent: true }) - expect({ ...pool.opts.settings, exec: workerFilePath }).toStrictEqual({ - args: ['--use', 'http'], - silent: true, - exec: workerFilePath - }) expect(cluster.settings).toMatchObject({ args: ['--use', 'http'], silent: true, -- 2.34.1