repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix: fix IWRR worker node removal
[poolifier.git]
/
tests
/
worker-files
/
cluster
/
emptyWorker.js
diff --git
a/tests/worker-files/cluster/emptyWorker.js
b/tests/worker-files/cluster/emptyWorker.js
index 62c8e2bb0438e426dd3838101002b53bba20b692..02a733da0b9ada70a623f54d57f446c9ba2ad672 100644
(file)
--- a/
tests/worker-files/cluster/emptyWorker.js
+++ b/
tests/worker-files/cluster/emptyWorker.js
@@
-1,6
+1,9
@@
'use strict'
'use strict'
-const { ClusterWorker
} = require('../../../lib/index
')
+const { ClusterWorker
, KillBehaviors } = require('../../../lib
')
-function test (
data
) {}
+function test () {}
-module.exports = new ClusterWorker(test, { maxInactiveTime: 500 })
+module.exports = new ClusterWorker(test, {
+ killBehavior: KillBehaviors.HARD,
+ maxInactiveTime: 500
+})