repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #153 from pioardi/add-worker-test
[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..054c4bb30c2d8ef2ad2ed9dd52bc5c6f9af793e2 100644
(file)
--- a/
tests/worker-files/cluster/echoWorker.js
+++ b/
tests/worker-files/cluster/echoWorker.js
@@
-1,8
+1,11
@@
'use strict'
'use strict'
-const { ClusterWorker } = require('../../../lib/index')
+const { ClusterWorker
, KillBehaviors
} = require('../../../lib/index')
function echo (data) {
return data
}
function echo (data) {
return data
}
-module.exports = new ClusterWorker(echo, { maxInactiveTime: 500 })
+module.exports = new ClusterWorker(echo, {
+ maxInactiveTime: 500,
+ killBehavior: KillBehaviors.HARD
+})