X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=tests%2Fworker-files%2Fcluster%2FlongRunningWorkerSoftBehavior.js;h=cd057ef06562455a2b30a93140ba23efa404c568;hb=a93f5559e2dd5ff7fd49afdd43bc9806cff92f56;hp=ea53bbea5b42cbc2b83474074430101d59cb33f6;hpb=cf597bc58029b9b5bf861c29fa9e917a6a72d859;p=poolifier.git diff --git a/tests/worker-files/cluster/longRunningWorkerSoftBehavior.js b/tests/worker-files/cluster/longRunningWorkerSoftBehavior.js index ea53bbea..cd057ef0 100644 --- a/tests/worker-files/cluster/longRunningWorkerSoftBehavior.js +++ b/tests/worker-files/cluster/longRunningWorkerSoftBehavior.js @@ -1,12 +1,11 @@ 'use strict' -const { ClusterWorker } = require('../../../lib/index') -const TestUtils = require('../../test-utils') +const { ClusterWorker } = require('../../../lib') +const { sleepTaskFunction } = require('../../test-utils') async function sleep (data) { - return await TestUtils.workerSleepFunction(data, 50000) + return sleepTaskFunction(data, 50000) } module.exports = new ClusterWorker(sleep, { - maxInactiveTime: 500, - async: true + maxInactiveTime: 500 })