test: fix worker file paths
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 30 Jun 2023 20:57:06 +0000 (22:57 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 30 Jun 2023 20:57:06 +0000 (22:57 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
tests/pools/abstract/abstract-pool.test.js
tests/pools/thread/fixed.test.js

index 424ad352e198c9356950248ca9b6296964acfa50..adf2765f7e67bcb68ffb11a534574fa3e18c3907 100644 (file)
@@ -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,
index e5d9831dc462c1b6bf887e606888fca9a5f78e33..8a0cfeadcbd4660b63e604d5214674d4328f8adb 100644 (file)
@@ -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()