X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Fworker-files%2Fcluster%2FemptyWorker.js;h=02a733da0b9ada70a623f54d57f446c9ba2ad672;hb=83a7394335d07f194f409447173dbca8fb5bff28;hp=58c55af12b8c171a12c8b430a3b32b3e2d7c0dc5;hpb=6fdc721bfdc82852c19cf4d53e0918c9665a580f;p=poolifier.git diff --git a/tests/worker-files/cluster/emptyWorker.js b/tests/worker-files/cluster/emptyWorker.js index 58c55af1..02a733da 100644 --- a/tests/worker-files/cluster/emptyWorker.js +++ b/tests/worker-files/cluster/emptyWorker.js @@ -1,9 +1,9 @@ 'use strict' -const { ClusterWorker, KillBehaviors } = require('../../../lib/index') +const { ClusterWorker, KillBehaviors } = require('../../../lib') -function test (data) {} +function test () {} module.exports = new ClusterWorker(test, { - maxInactiveTime: 500, - killBehavior: KillBehaviors.HARD + killBehavior: KillBehaviors.HARD, + maxInactiveTime: 500 })