repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
chore: v2.4.3
[poolifier.git]
/
tests
/
worker-files
/
thread
/
emptyWorker.js
diff --git
a/tests/worker-files/thread/emptyWorker.js
b/tests/worker-files/thread/emptyWorker.js
index 69a83a7710fed25eeae541c9f1b83b737d135664..191c033127e46ea054c5d425948e3c50a8df47c4 100644
(file)
--- a/
tests/worker-files/thread/emptyWorker.js
+++ b/
tests/worker-files/thread/emptyWorker.js
@@
-1,6
+1,9
@@
'use strict'
'use strict'
-const { ThreadWorker } = require('../../../lib/index')
+const { ThreadWorker
, KillBehaviors
} = require('../../../lib/index')
-function test (
data
) {}
+function test () {}
-module.exports = new ThreadWorker(test, { maxInactiveTime: 500 })
+module.exports = new ThreadWorker(test, {
+ maxInactiveTime: 500,
+ killBehavior: KillBehaviors.HARD
+})