From 1fd60f0d2f318468bddcc599052dbce81fab6a8e Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Fri, 17 May 2024 14:33:48 +0200 Subject: [PATCH] test: improve cluster settings coverage 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 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/pools/cluster/fixed.test.mjs b/tests/pools/cluster/fixed.test.mjs index ad7c003a..a2fd1b6a 100644 --- a/tests/pools/cluster/fixed.test.mjs +++ b/tests/pools/cluster/fixed.test.mjs @@ -1,3 +1,5 @@ +import cluster from 'node:cluster' + import { expect } from 'expect' import { FixedClusterPool, PoolEvents } from '../../../lib/index.cjs' @@ -300,6 +302,11 @@ describe('Fixed cluster pool test suite', () => { silent: true, exec: workerFilePath }) + expect(cluster.settings).toMatchObject({ + args: ['--use', 'http'], + silent: true, + exec: workerFilePath + }) await pool.destroy() }) -- 2.34.1