X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Fworker-files%2Fcluster%2FasyncWorker.js;h=b03a505486e4af776ba12c830c53fb80ad68f221;hb=a93f5559e2dd5ff7fd49afdd43bc9806cff92f56;hp=e8866877c0ec2ac6d8f5aed1ce70666ddac85b13;hpb=cdace0e5b9082804893de9501372490ee1064090;p=poolifier.git diff --git a/tests/worker-files/cluster/asyncWorker.js b/tests/worker-files/cluster/asyncWorker.js index e8866877..b03a5054 100644 --- a/tests/worker-files/cluster/asyncWorker.js +++ b/tests/worker-files/cluster/asyncWorker.js @@ -1,13 +1,12 @@ 'use strict' const { ClusterWorker, KillBehaviors } = require('../../../lib') -const TestUtils = require('../../test-utils') +const { sleepTaskFunction } = require('../../test-utils') async function sleep (data) { - return TestUtils.sleepWorkerFunction(data, 2000) + return sleepTaskFunction(data, 2000) } module.exports = new ClusterWorker(sleep, { maxInactiveTime: 500, - async: true, killBehavior: KillBehaviors.HARD })