From ecdfbdc006d5a377b06fa49845975b249a9b59f9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Fri, 30 Jun 2023 22:57:06 +0200 Subject: [PATCH] test: fix worker file paths MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- tests/pools/abstract/abstract-pool.test.js | 2 +- tests/pools/thread/fixed.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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() -- 2.34.1