X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Fworker-files%2Fcluster%2FemptyWorker.js;h=02a733da0b9ada70a623f54d57f446c9ba2ad672;hb=041dc05b2a95b36db72525072ba54c4c58ffcf0e;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..02a733da 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, { + killBehavior: KillBehaviors.HARD, + maxInactiveTime: 500 +})