X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Fpools%2Futils.test.mjs;h=c6cc06d31487f2b492850203fb64ceda79d2ae87;hb=d1112ac474570548370f5adacc6542a780b6ff13;hp=6869bda681315aab9b088bad60677df4e8bcc510;hpb=3ffc32ec66a9c48f39a1b976ebd88cea53824679;p=poolifier.git diff --git a/tests/pools/utils.test.mjs b/tests/pools/utils.test.mjs index 6869bda6..c6cc06d3 100644 --- a/tests/pools/utils.test.mjs +++ b/tests/pools/utils.test.mjs @@ -1,25 +1,27 @@ -import { Worker as ThreadWorker } from 'node:worker_threads' import cluster, { Worker as ClusterWorker } from 'node:cluster' +import { Worker as ThreadWorker } from 'node:worker_threads' + import { expect } from 'expect' + import { CircularArray, DEFAULT_CIRCULAR_ARRAY_SIZE } from '../../lib/circular-array.cjs' import { - DEFAULT_MEASUREMENT_STATISTICS_REQUIREMENTS, + FixedClusterPool, + FixedThreadPool, + WorkerTypes +} from '../../lib/index.cjs' +import { buildWorkerChoiceStrategyOptions, createWorker, + DEFAULT_MEASUREMENT_STATISTICS_REQUIREMENTS, getDefaultTasksQueueOptions, getWorkerChoiceStrategyRetries, getWorkerId, getWorkerType, updateMeasurementStatistics } from '../../lib/pools/utils.cjs' -import { - FixedClusterPool, - FixedThreadPool, - WorkerTypes -} from '../../lib/index.cjs' describe('Pool utils test suite', () => { it('Verify DEFAULT_MEASUREMENT_STATISTICS_REQUIREMENTS values', () => {