X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Fworker-files%2Fcluster%2FasyncErrorWorker.js;h=028a7cf3a77a97689442576fb40d6457c623df8c;hb=1c881a974a7849061a4e508885b5a96bdc134194;hp=09278851c72e31070e31784447ad8cda0e637a56;hpb=cdace0e5b9082804893de9501372490ee1064090;p=poolifier.git diff --git a/tests/worker-files/cluster/asyncErrorWorker.js b/tests/worker-files/cluster/asyncErrorWorker.js index 09278851..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') -const TestUtils = require('../../test-utils') +const { sleepTaskFunction } = require('../../test-utils') async function error (data) { - return TestUtils.sleepWorkerFunction( + 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 })