X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Fworker%2Fthread%2FlongRunningWorkerHardBehavior.js;h=7d9714a8140aed85399c5b53aff47a6ec5b2a002;hb=1a81f8af06213d08267e8e7d593c5ec7be087535;hp=8e3eb38a82a8863d00a2f184fac969baf8660f8b;hpb=3ec964d666b2ffa57b57a37a29542a727fc55ee6;p=poolifier.git diff --git a/tests/worker/thread/longRunningWorkerHardBehavior.js b/tests/worker/thread/longRunningWorkerHardBehavior.js index 8e3eb38a..7d9714a8 100644 --- a/tests/worker/thread/longRunningWorkerHardBehavior.js +++ b/tests/worker/thread/longRunningWorkerHardBehavior.js @@ -1,5 +1,5 @@ 'use strict' -const { ThreadWorker, killBehaviorTypes } = 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: killBehaviorTypes.HARD + killBehavior: KillBehaviors.HARD })