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): apply updates
[poolifier.git]
/
tests
/
worker-files
/
thread
/
errorWorker.js
diff --git
a/tests/worker-files/thread/errorWorker.js
b/tests/worker-files/thread/errorWorker.js
index 841af907f1b2f6c290282c91adfc6afec5ae4ed4..19785dc36152b694d16e62468504590f9e921cb2 100644
(file)
--- a/
tests/worker-files/thread/errorWorker.js
+++ b/
tests/worker-files/thread/errorWorker.js
@@
-1,12
+1,11
@@
'use strict'
'use strict'
-const { ThreadWorker, KillBehaviors } = require('../../../lib
/index
')
+const { ThreadWorker, KillBehaviors } = require('../../../lib')
-function error (
data
) {
+function error () {
throw new Error('Error Message from ThreadWorker')
}
module.exports = new ThreadWorker(error, {
maxInactiveTime: 500,
throw new Error('Error Message from ThreadWorker')
}
module.exports = new ThreadWorker(error, {
maxInactiveTime: 500,
- async: false,
killBehavior: KillBehaviors.HARD
})
killBehavior: KillBehaviors.HARD
})