X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Fworker-files%2Fcluster%2FlongRunningWorkerSoftBehavior.js;h=0459acf73067dde08a3eadf59bbad27783fc2ce5;hb=57a88678b817dd3b890985ddfe29026a705c0baf;hp=c1e89e1a5150558af4b42338fae23c3d6ec66f3a;hpb=6db75ad932064c1415ff6f03645929530209a5fe;p=poolifier.git diff --git a/tests/worker-files/cluster/longRunningWorkerSoftBehavior.js b/tests/worker-files/cluster/longRunningWorkerSoftBehavior.js index c1e89e1a..0459acf7 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.js') async function sleep (data) { - return TestUtils.sleepWorkerFunction(data, 50000) + return sleepTaskFunction(data, 50000) } module.exports = new ClusterWorker(sleep, { - maxInactiveTime: 500, - async: true + maxInactiveTime: 500 })