From: Jérôme Benoit Date: Fri, 30 Jun 2023 20:57:06 +0000 (+0200) Subject: test: fix worker file paths X-Git-Tag: v2.6.6~7 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=ecdfbdc006d5a377b06fa49845975b249a9b59f9;p=poolifier.git test: fix worker file paths Signed-off-by: Jérôme Benoit --- diff --git a/tests/pools/abstract/abstract-pool.test.js b/tests/pools/abstract/abstract-pool.test.js index 424ad352..adf2765f 100644 --- a/tests/pools/abstract/abstract-pool.test.js +++ b/tests/pools/abstract/abstract-pool.test.js @@ -410,7 +410,7 @@ describe('Abstract pool test suite', () => { pool = new DynamicClusterPool( numberOfWorkers, numberOfWorkers * 2, - './tests/worker-files/thread/testWorker.js' + './tests/worker-files/cluster/testWorker.js' ) expect(pool.info).toStrictEqual({ type: PoolTypes.dynamic, diff --git a/tests/pools/thread/fixed.test.js b/tests/pools/thread/fixed.test.js index e5d9831d..8a0cfead 100644 --- a/tests/pools/thread/fixed.test.js +++ b/tests/pools/thread/fixed.test.js @@ -208,7 +208,7 @@ describe('Fixed thread pool test suite', () => { }) it('Verify that thread pool options are checked', async () => { - const workerFilePath = './tests/worker-files/cluster/testWorker.js' + const workerFilePath = './tests/worker-files/thread/testWorker.js' let pool1 = new FixedThreadPool(numberOfThreads, workerFilePath) expect(pool1.opts.workerOptions).toBeUndefined() await pool1.destroy()