repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build(deps-dev): bump @types/node
[poolifier.git]
/
tests
/
pools
/
utils.test.mjs
diff --git
a/tests/pools/utils.test.mjs
b/tests/pools/utils.test.mjs
index 8c0a2b6ccf2f0502b915f985512a1624b1c730e0..610b92c3ce62cba912ab9273b14d5cb2077f9884 100644
(file)
--- 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
import {
CircularArray,
DEFAULT_CIRCULAR_ARRAY_SIZE
-} from '../../lib/circular-array.js'
+} from '../../lib/circular-array.
c
js'
import {
createWorker,
getDefaultTasksQueueOptions,
updateMeasurementStatistics
import {
createWorker,
getDefaultTasksQueueOptions,
updateMeasurementStatistics
-} from '../../lib/pools/utils.js'
-import { WorkerTypes } from '../../lib/index.js'
+} from '../../lib/pools/utils.
c
js'
+import { WorkerTypes } from '../../lib/index.
c
js'
describe('Pool utils test suite', () => {
it('Verify getDefaultTasksQueueOptions() behavior', () => {
describe('Pool utils test suite', () => {
it('Verify getDefaultTasksQueueOptions() behavior', () => {
@@
-20,7
+20,7
@@
describe('Pool utils test suite', () => {
size: Math.pow(poolMaxSize, 2),
taskStealing: true,
tasksStealingOnBackPressure: true,
size: Math.pow(poolMaxSize, 2),
taskStealing: true,
tasksStealingOnBackPressure: true,
- tasksFinishedTimeout:
1
000
+ tasksFinishedTimeout:
2
000
})
})
})
})
@@
-115,13
+115,15
@@
describe('Pool utils test suite', () => {
expect(
createWorker(
WorkerTypes.thread,
expect(
createWorker(
WorkerTypes.thread,
- './tests/worker-files/thread/testWorker.mjs'
+ './tests/worker-files/thread/testWorker.mjs',
+ {}
)
).toBeInstanceOf(ThreadWorker)
expect(
createWorker(
WorkerTypes.cluster,
)
).toBeInstanceOf(ThreadWorker)
expect(
createWorker(
WorkerTypes.cluster,
- './tests/worker-files/cluster/testWorker.mjs'
+ './tests/worker-files/cluster/testWorker.mjs',
+ {}
)
).toBeInstanceOf(ClusterWorker)
})
)
).toBeInstanceOf(ClusterWorker)
})