repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Doc enhancement
[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 63a27513a74638aafbfabc08f04c6dec01f46ea9..e9f20ab8e5101120d7f51459bf338676208f404f 100644
(file)
--- a/
tests/worker-files/thread/errorWorker.js
+++ b/
tests/worker-files/thread/errorWorker.js
@@
-1,8
+1,11
@@
'use strict'
'use strict'
-const { ThreadWorker } = require('../../../lib/index')
+const { ThreadWorker
, KillBehaviors
} = require('../../../lib/index')
function error (data) {
throw new Error(data)
}
function error (data) {
throw new Error(data)
}
-module.exports = new ThreadWorker(error, { maxInactiveTime: 500 })
+module.exports = new ThreadWorker(error, {
+ maxInactiveTime: 500,
+ killBehavior: KillBehaviors.HARD
+})