X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Fworker-files%2Fthread%2FasyncErrorWorker.js;h=ac9663304c101eb49504fe8ce989c7610228afe8;hb=3ef87592f37b293b9593bfeefc77c78a8ddbabb3;hp=39f4055d771d7896c3d0cdf8d490af0d8baca64f;hpb=15d563152134452a245e4842b20fbf4030457e16;p=poolifier.git diff --git a/tests/worker-files/thread/asyncErrorWorker.js b/tests/worker-files/thread/asyncErrorWorker.js index 39f4055d..ac966330 100644 --- a/tests/worker-files/thread/asyncErrorWorker.js +++ b/tests/worker-files/thread/asyncErrorWorker.js @@ -1,9 +1,9 @@ 'use strict' -const { ThreadWorker, KillBehaviors } = require('../../../lib/index') +const { ThreadWorker, KillBehaviors } = require('../../../lib') const TestUtils = require('../../test-utils') async function error (data) { - return TestUtils.workerSleepFunction( + return TestUtils.sleepWorkerFunction( data, 2000, true,