X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Fworker-files%2Fcluster%2FasyncWorker.js;h=b03a505486e4af776ba12c830c53fb80ad68f221;hb=a93f5559e2dd5ff7fd49afdd43bc9806cff92f56;hp=c9bcc8921474dc1f0af630a0268097ad24a8ee95;hpb=6677a3d36e9e7241c54db7cd69daa40f52fcbcb3;p=poolifier.git diff --git a/tests/worker-files/cluster/asyncWorker.js b/tests/worker-files/cluster/asyncWorker.js index c9bcc892..b03a5054 100644 --- a/tests/worker-files/cluster/asyncWorker.js +++ b/tests/worker-files/cluster/asyncWorker.js @@ -1,9 +1,9 @@ '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, {