X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Fworker-files%2Fthread%2FasyncWorker.js;h=2b834b87fd33d9002bd664707159581824f90301;hb=24bddda97c976ec2ae518d27f033d16f76bec370;hp=d5d9b3101ba862f06b12882b2a896aa3ec32c1f3;hpb=6677a3d36e9e7241c54db7cd69daa40f52fcbcb3;p=poolifier.git diff --git a/tests/worker-files/thread/asyncWorker.js b/tests/worker-files/thread/asyncWorker.js index d5d9b310..2b834b87 100644 --- a/tests/worker-files/thread/asyncWorker.js +++ b/tests/worker-files/thread/asyncWorker.js @@ -1,9 +1,9 @@ 'use strict' const { ThreadWorker, 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 ThreadWorker(sleep, {