X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Fworker-files%2Fcluster%2FemptyWorker.js;h=01d1cf09812e4baf8584e5fc41f9920b7d1db2a0;hb=f42c583f7cef671a4a70b2d749875ea3a155fd84;hp=62c8e2bb0438e426dd3838101002b53bba20b692;hpb=76b1e974f09148b895e52e0c96d1c8379519ff7a;p=poolifier.git diff --git a/tests/worker-files/cluster/emptyWorker.js b/tests/worker-files/cluster/emptyWorker.js index 62c8e2bb..01d1cf09 100644 --- a/tests/worker-files/cluster/emptyWorker.js +++ b/tests/worker-files/cluster/emptyWorker.js @@ -1,6 +1,9 @@ '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, { + maxInactiveTime: 500, + killBehavior: KillBehaviors.HARD +})