repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Apply dependencies update
[poolifier.git]
/
tests
/
pools
/
abstract
/
abstract-pool.test.js
diff --git
a/tests/pools/abstract/abstract-pool.test.js
b/tests/pools/abstract/abstract-pool.test.js
index 273de9a038f0a02eb0e4d554bd717107e06394f3..80ebdb9e7e5a04b07f71f7878ed46318cbcd4fdb 100644
(file)
--- a/
tests/pools/abstract/abstract-pool.test.js
+++ b/
tests/pools/abstract/abstract-pool.test.js
@@
-62,7
+62,9
@@
describe('Abstract pool test suite', () => {
() =>
new FixedClusterPool(-1, './tests/worker-files/cluster/testWorker.js')
).toThrowError(
() =>
new FixedClusterPool(-1, './tests/worker-files/cluster/testWorker.js')
).toThrowError(
- new Error('Cannot instantiate a pool with a negative number of workers')
+ new RangeError(
+ 'Cannot instantiate a pool with a negative number of workers'
+ )
)
})
)
})
@@
-71,7
+73,7
@@
describe('Abstract pool test suite', () => {
() =>
new FixedThreadPool(0.25, './tests/worker-files/thread/testWorker.js')
).toThrowError(
() =>
new FixedThreadPool(0.25, './tests/worker-files/thread/testWorker.js')
).toThrowError(
- new Error(
+ new
Type
Error(
'Cannot instantiate a pool with a non integer number of workers'
)
)
'Cannot instantiate a pool with a non integer number of workers'
)
)