X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Fworker-files%2Fthread%2FlongRunningWorkerHardBehavior.js;h=daa381edb226803d905f19314a31530dc357532b;hb=af1055b05f5f679b37dcaf517d07a8de7c263b00;hp=29c633bbb2d2bb3f12163a70cc2adfe4c7481306;hpb=cdace0e5b9082804893de9501372490ee1064090;p=poolifier.git diff --git a/tests/worker-files/thread/longRunningWorkerHardBehavior.js b/tests/worker-files/thread/longRunningWorkerHardBehavior.js index 29c633bb..daa381ed 100644 --- a/tests/worker-files/thread/longRunningWorkerHardBehavior.js +++ b/tests/worker-files/thread/longRunningWorkerHardBehavior.js @@ -1,13 +1,12 @@ 'use strict' const { ThreadWorker, KillBehaviors } = require('../../../lib') -const TestUtils = require('../../test-utils') +const { sleepTaskFunction } = require('../../test-utils') async function sleep (data) { - return TestUtils.sleepWorkerFunction(data, 50000) + return sleepTaskFunction(data, 50000) } module.exports = new ThreadWorker(sleep, { maxInactiveTime: 500, - async: true, killBehavior: KillBehaviors.HARD })