X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Fworker%2Fthread%2FlongRunningWorkerHardBehavior.js;h=7d9714a8140aed85399c5b53aff47a6ec5b2a002;hb=1a81f8af06213d08267e8e7d593c5ec7be087535;hp=ec74579482d78b9aed762dffba288840d732108d;hpb=afd20c11f44e34385623a4b86834f69bcf660606;p=poolifier.git diff --git a/tests/worker/thread/longRunningWorkerHardBehavior.js b/tests/worker/thread/longRunningWorkerHardBehavior.js index ec745794..7d9714a8 100644 --- a/tests/worker/thread/longRunningWorkerHardBehavior.js +++ b/tests/worker/thread/longRunningWorkerHardBehavior.js @@ -1,5 +1,5 @@ 'use strict' -const { ThreadWorker, killBehaviorEnumeration } = require('../../../lib/index') +const { ThreadWorker, KillBehaviors } = require('../../../lib/index') async function sleep (data) { return new Promise((resolve, reject) => { @@ -10,5 +10,5 @@ async function sleep (data) { module.exports = new ThreadWorker(sleep, { maxInactiveTime: 500, async: true, - killBehavior: killBehaviorEnumeration.HARD + killBehavior: KillBehaviors.HARD })