X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Fworker-files%2Fcluster%2FasyncErrorWorker.js;h=b9fd9016ab91801122e4cb6394b5e590377b4f3f;hb=6fdc721bfdc82852c19cf4d53e0918c9665a580f;hp=2476853b55520ab5fea4c917fb70d0f05c66dfa0;hpb=76b1e974f09148b895e52e0c96d1c8379519ff7a;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 })