X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Fworker%2Fcluster%2FerrorWorker.js;h=d6d9297ac8e5f671c3249622139c3ba0c8b8d8b6;hb=1a81f8af06213d08267e8e7d593c5ec7be087535;hp=02168a677b3367fbb5980cc3b9a6bf39b18da986;hpb=3ec964d666b2ffa57b57a37a29542a727fc55ee6;p=poolifier.git diff --git a/tests/worker/cluster/errorWorker.js b/tests/worker/cluster/errorWorker.js index 02168a67..d6d9297a 100644 --- a/tests/worker/cluster/errorWorker.js +++ b/tests/worker/cluster/errorWorker.js @@ -1,5 +1,5 @@ 'use strict' -const { ClusterWorker, killBehaviorTypes } = 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: killBehaviorTypes + killBehavior: KillBehaviors.HARD })