X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Fworker-files%2Fthread%2FlongRunningWorkerHardBehavior.js;h=29c633bbb2d2bb3f12163a70cc2adfe4c7481306;hb=5a8e162d045b7d6321dd7458dce3db03d0f78b6d;hp=120e8e5ffa3e4ce457225d831a5c8556a28027cb;hpb=cf597bc58029b9b5bf861c29fa9e917a6a72d859;p=poolifier.git diff --git a/tests/worker-files/thread/longRunningWorkerHardBehavior.js b/tests/worker-files/thread/longRunningWorkerHardBehavior.js index 120e8e5f..29c633bb 100644 --- a/tests/worker-files/thread/longRunningWorkerHardBehavior.js +++ b/tests/worker-files/thread/longRunningWorkerHardBehavior.js @@ -1,9 +1,9 @@ 'use strict' -const { ThreadWorker, KillBehaviors } = require('../../../lib/index') +const { ThreadWorker, KillBehaviors } = require('../../../lib') const TestUtils = require('../../test-utils') async function sleep (data) { - return await TestUtils.workerSleepFunction(data, 50000) + return TestUtils.sleepWorkerFunction(data, 50000) } module.exports = new ThreadWorker(sleep, {