X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Fworker-files%2Fcluster%2FlongRunningWorkerSoftBehavior.js;h=208e5ba2d46da64e9d1418f68e0f10abe8a54deb;hb=e677f6c55e0bb599d8e589a937a928229ecd6fea;hp=5498752fad17ca839415de018309205bab74102e;hpb=bdacc2d25f190728221f7fb8c8cd2aba175cb18d;p=poolifier.git diff --git a/tests/worker-files/cluster/longRunningWorkerSoftBehavior.js b/tests/worker-files/cluster/longRunningWorkerSoftBehavior.js index 5498752f..208e5ba2 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 { sleepWorkerFunction } = require('../../test-utils') async function sleep (data) { - return TestUtils.workerSleepFunction(data, 50000) + return sleepWorkerFunction(data, 50000) } module.exports = new ClusterWorker(sleep, { - maxInactiveTime: 500, - async: true + maxInactiveTime: 500 })