X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Fworker-files%2Fcluster%2FasyncErrorWorker.js;h=028a7cf3a77a97689442576fb40d6457c623df8c;hb=d69f074ec35df981974465e7c05d700ca2ae1cec;hp=0b6f5d8acb937a02bc4dcb47d855f6a89456ddc2;hpb=15d563152134452a245e4842b20fbf4030457e16;p=poolifier.git diff --git a/tests/worker-files/cluster/asyncErrorWorker.js b/tests/worker-files/cluster/asyncErrorWorker.js index 0b6f5d8a..028a7cf3 100644 --- a/tests/worker-files/cluster/asyncErrorWorker.js +++ b/tests/worker-files/cluster/asyncErrorWorker.js @@ -1,9 +1,9 @@ 'use strict' -const { ClusterWorker, KillBehaviors } = require('../../../lib/index') -const TestUtils = require('../../test-utils') +const { ClusterWorker, KillBehaviors } = require('../../../lib') +const { sleepTaskFunction } = require('../../test-utils') async function error (data) { - return TestUtils.workerSleepFunction( + return sleepTaskFunction( data, 2000, true, @@ -13,6 +13,5 @@ async function error (data) { module.exports = new ClusterWorker(error, { maxInactiveTime: 500, - async: true, killBehavior: KillBehaviors.HARD })