From: Jérôme Benoit Date: Sun, 6 Mar 2022 09:23:25 +0000 (+0100) Subject: Align UTs worker implementation X-Git-Tag: v2.2.1~90 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=df0f13aff5d5cc7a8df0e122a6b114764904357b;p=poolifier.git Align UTs worker implementation Signed-off-by: Jérôme Benoit --- diff --git a/tests/worker-files/cluster/echoWorker.js b/tests/worker-files/cluster/echoWorker.js index cd20753e..9bcae281 100644 --- a/tests/worker-files/cluster/echoWorker.js +++ b/tests/worker-files/cluster/echoWorker.js @@ -1,8 +1,10 @@ 'use strict' -const { ClusterWorker } = require('../../../lib/index') +const { ClusterWorker, KillBehaviors } = require('../../../lib/index') function echo (data) { return data } -module.exports = new ClusterWorker(echo) +module.exports = new ClusterWorker(echo, { + killBehavior: KillBehaviors.HARD +})