X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Fpools%2Futils.test.mjs;h=610b92c3ce62cba912ab9273b14d5cb2077f9884;hb=92ee870822ce2095aa3fa7f66b663d4925a5462b;hp=adff47d9ba9781687a9fb89daa31dea7841fa8ca;hpb=568d0075825104b5a5ccc38dea2beeb55b55f3d0;p=poolifier.git diff --git a/tests/pools/utils.test.mjs b/tests/pools/utils.test.mjs index adff47d9..610b92c3 100644 --- a/tests/pools/utils.test.mjs +++ b/tests/pools/utils.test.mjs @@ -4,13 +4,13 @@ import { expect } from 'expect' import { CircularArray, DEFAULT_CIRCULAR_ARRAY_SIZE -} from '../../lib/circular-array.js' +} from '../../lib/circular-array.cjs' import { createWorker, getDefaultTasksQueueOptions, updateMeasurementStatistics -} from '../../lib/pools/utils.js' -import { WorkerTypes } from '../../lib/index.js' +} from '../../lib/pools/utils.cjs' +import { WorkerTypes } from '../../lib/index.cjs' describe('Pool utils test suite', () => { it('Verify getDefaultTasksQueueOptions() behavior', () => { @@ -115,13 +115,15 @@ describe('Pool utils test suite', () => { expect( createWorker( WorkerTypes.thread, - './tests/worker-files/thread/testWorker.mjs' + './tests/worker-files/thread/testWorker.mjs', + {} ) ).toBeInstanceOf(ThreadWorker) expect( createWorker( WorkerTypes.cluster, - './tests/worker-files/cluster/testWorker.mjs' + './tests/worker-files/cluster/testWorker.mjs', + {} ) ).toBeInstanceOf(ClusterWorker) })