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