From: Jérôme Benoit Date: Fri, 17 May 2024 12:33:48 +0000 (+0200) Subject: test: improve cluster settings coverage X-Git-Tag: v4.0.9~10 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=1fd60f0d2f318468bddcc599052dbce81fab6a8e;p=poolifier.git test: improve cluster settings coverage Signed-off-by: Jérôme Benoit --- 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() })