X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Fworker-files%2Fcluster%2FasyncErrorWorker.js;h=b9fd9016ab91801122e4cb6394b5e590377b4f3f;hb=a61a07243eee5cc54e7cf0d8e231202781f73f30;hp=2476853b55520ab5fea4c917fb70d0f05c66dfa0;hpb=b8818d59f9e410ce2e3b0103b8372b3fa1badf8f;p=poolifier.git diff --git a/tests/worker-files/cluster/asyncErrorWorker.js b/tests/worker-files/cluster/asyncErrorWorker.js index 2476853b..b9fd9016 100644 --- a/tests/worker-files/cluster/asyncErrorWorker.js +++ b/tests/worker-files/cluster/asyncErrorWorker.js @@ -1,5 +1,5 @@ 'use strict' -const { ClusterWorker } = require('../../../lib/index') +const { ClusterWorker, KillBehaviors } = require('../../../lib/index') async function error (data) { return new Promise((resolve, reject) => { @@ -12,5 +12,6 @@ async function error (data) { module.exports = new ClusterWorker(error, { maxInactiveTime: 500, - async: true + async: true, + killBehavior: KillBehaviors.HARD })