X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=tests%2Fworker%2Fcluster%2FerrorWorker.js;h=02168a677b3367fbb5980cc3b9a6bf39b18da986;hb=e8ea58d292e381a6be7f4d0fee5d5b691adb37ac;hp=bbcb78be74f5cf5fad08a097545303017013e737;hpb=5efc2a90350b03cb26758a5adbd692b250a7d331;p=poolifier.git diff --git a/tests/worker/cluster/errorWorker.js b/tests/worker/cluster/errorWorker.js index bbcb78be..02168a67 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, killBehaviorTypes } = 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: killBehaviorTypes })