X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Fworker%2Fcluster%2FlongRunningWorkerHardBehavior.js;h=4dc69525fac2746feea5891e477126d49e3f200a;hb=e8ea58d292e381a6be7f4d0fee5d5b691adb37ac;hp=9fe9d3f8e7152bb1525a38755e2294151a3e133d;hpb=5efc2a90350b03cb26758a5adbd692b250a7d331;p=poolifier.git diff --git a/tests/worker/cluster/longRunningWorkerHardBehavior.js b/tests/worker/cluster/longRunningWorkerHardBehavior.js index 9fe9d3f8..4dc69525 100644 --- a/tests/worker/cluster/longRunningWorkerHardBehavior.js +++ b/tests/worker/cluster/longRunningWorkerHardBehavior.js @@ -1,5 +1,5 @@ 'use strict' -const { ClusterWorker, killBehaviorEnumeration } = require('../../../lib/index') +const { ClusterWorker, killBehaviorTypes } = require('../../../lib/index') async function sleep (data) { return new Promise((resolve, reject) => { @@ -10,5 +10,5 @@ async function sleep (data) { module.exports = new ClusterWorker(sleep, { maxInactiveTime: 500, async: true, - killBehavior: killBehaviorEnumeration.HARD + killBehavior: killBehaviorTypes.HARD })