repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
test: switch to ESM
[poolifier.git]
/
tests
/
worker-files
/
cluster
/
echoWorker.js
diff --git
a/tests/worker-files/cluster/echoWorker.js
b/tests/worker-files/cluster/echoWorker.js
index 6c77bcce888b77b20f4f6045d4bc3f4fe00905a3..f9308c70c4bbbecfa0d205db06867a46562e2ac2 100644
(file)
--- a/
tests/worker-files/cluster/echoWorker.js
+++ b/
tests/worker-files/cluster/echoWorker.js
@@
-1,8
+1,10
@@
'use strict'
'use strict'
-const { ClusterWorker
} = require('../../../lib/index
')
+const { ClusterWorker
, KillBehaviors } = require('../../../lib
')
function echo (data) {
return data
}
function echo (data) {
return data
}
-module.exports = new ClusterWorker(echo, { maxInactiveTime: 500 })
+module.exports = new ClusterWorker(echo, {
+ killBehavior: KillBehaviors.HARD
+})