X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Fworker-files%2Fcluster%2FemptyWorker.js;h=a0c94085897af10321a34427c076d4f7cdad01e5;hb=d2c1b9b8013ca6ab5a7d3a87dea1cc643a2efbc9;hp=62c8e2bb0438e426dd3838101002b53bba20b692;hpb=b8818d59f9e410ce2e3b0103b8372b3fa1badf8f;p=poolifier.git diff --git a/tests/worker-files/cluster/emptyWorker.js b/tests/worker-files/cluster/emptyWorker.js index 62c8e2bb..a0c94085 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/index') -function test (data) {} +function test () {} -module.exports = new ClusterWorker(test, { maxInactiveTime: 500 }) +module.exports = new ClusterWorker(test, { + maxInactiveTime: 500, + killBehavior: KillBehaviors.HARD +})