X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Fworker%2Fcluster%2FasyncWorker.js;h=106df109d4daffc4f12c50c92e7079436d38df2a;hb=e8ea58d292e381a6be7f4d0fee5d5b691adb37ac;hp=b47adc916affe53ad7e12a7fe447aac1c7f85a4e;hpb=afd20c11f44e34385623a4b86834f69bcf660606;p=poolifier.git diff --git a/tests/worker/cluster/asyncWorker.js b/tests/worker/cluster/asyncWorker.js index b47adc91..106df109 100644 --- a/tests/worker/cluster/asyncWorker.js +++ b/tests/worker/cluster/asyncWorker.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 })