repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a script to sync sonar properties
[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..58c55af12b8c171a12c8b430a3b32b3e2d7c0dc5 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/index')
function test (data) {}
function test (data) {}
-module.exports = new ClusterWorker(test, { maxInactiveTime: 500 })
+module.exports = new ClusterWorker(test, {
+ maxInactiveTime: 500,
+ killBehavior: KillBehaviors.HARD
+})