X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Fpools%2Fthread%2Fdynamic.test.mjs;h=0918065b403314f942fc4e3422e83740cdd3e654;hb=88c31884cb650840fe3896baa0c53280fb1479e3;hp=0a608a01f2d9d478b9fc4a17c388bcb1ac89b4dd;hpb=a074ffee1b46f43d0dcfba58128748c7492104dd;p=poolifier.git diff --git a/tests/pools/thread/dynamic.test.mjs b/tests/pools/thread/dynamic.test.mjs index 0a608a01..0918065b 100644 --- a/tests/pools/thread/dynamic.test.mjs +++ b/tests/pools/thread/dynamic.test.mjs @@ -9,7 +9,7 @@ describe('Dynamic thread pool test suite', () => { const pool = new DynamicThreadPool( min, max, - './tests/worker-files/thread/testWorker.js', + './tests/worker-files/thread/testWorker.mjs', { errorHandler: e => console.error(e) } @@ -82,7 +82,7 @@ describe('Dynamic thread pool test suite', () => { const pool = new DynamicThreadPool( min, max, - './tests/worker-files/thread/testWorker.js' + './tests/worker-files/thread/testWorker.mjs' ) const res = await pool.execute() expect(res).toStrictEqual({ ok: 1 }) @@ -94,7 +94,7 @@ describe('Dynamic thread pool test suite', () => { const longRunningPool = new DynamicThreadPool( min, max, - './tests/worker-files/thread/longRunningWorkerHardBehavior.js', + './tests/worker-files/thread/longRunningWorkerHardBehavior.mjs', { errorHandler: e => console.error(e), onlineHandler: () => console.info('long executing worker is online'), @@ -121,7 +121,7 @@ describe('Dynamic thread pool test suite', () => { const longRunningPool = new DynamicThreadPool( min, max, - './tests/worker-files/thread/longRunningWorkerSoftBehavior.js', + './tests/worker-files/thread/longRunningWorkerSoftBehavior.mjs', { errorHandler: e => console.error(e), onlineHandler: () => console.info('long executing worker is online'), @@ -144,7 +144,7 @@ describe('Dynamic thread pool test suite', () => { const pool = new DynamicThreadPool( 0, max, - './tests/worker-files/thread/testWorker.js' + './tests/worker-files/thread/testWorker.mjs' ) expect(pool).toBeInstanceOf(DynamicThreadPool) // We need to clean up the resources after our test