X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Fworker-files%2Fcluster%2FerrorWorker.js;h=d6d9297ac8e5f671c3249622139c3ba0c8b8d8b6;hb=4f4ae1cb3c33228a023ea599c2648268d15e6c0f;hp=87df92543664b6e3c5395a52e8c822d65ea0c8b6;hpb=76b1e974f09148b895e52e0c96d1c8379519ff7a;p=poolifier.git diff --git a/tests/worker-files/cluster/errorWorker.js b/tests/worker-files/cluster/errorWorker.js index 87df9254..d6d9297a 100644 --- a/tests/worker-files/cluster/errorWorker.js +++ b/tests/worker-files/cluster/errorWorker.js @@ -1,5 +1,5 @@ 'use strict' -const { ClusterWorker } = require('../../../lib/index') +const { ClusterWorker, KillBehaviors } = require('../../../lib/index') function error (data) { throw new Error('Error Message from ClusterWorker') @@ -7,5 +7,6 @@ function error (data) { module.exports = new ClusterWorker(error, { maxInactiveTime: 500, - async: false + async: false, + killBehavior: KillBehaviors.HARD })