X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Fworker-files%2Fthread%2FasyncErrorWorker.js;h=f696b101947d6dc7ed180feae6fe7a0f763797b6;hb=16cac9dc59955acdbe97f1097aed3b3120991619;hp=6bc0ae6b3b19226c557ce3455fe068b7b21e8bc4;hpb=bac873bd6581e5d5c0884bc520e9ec3c446509e6;p=poolifier.git diff --git a/tests/worker-files/thread/asyncErrorWorker.js b/tests/worker-files/thread/asyncErrorWorker.js index 6bc0ae6b..f696b101 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') -const { sleepWorkerFunction } = require('../../test-utils') +const { sleepTaskFunction } = require('../../test-utils') async function error (data) { - return sleepWorkerFunction( + return sleepTaskFunction( data, 2000, true, @@ -12,6 +12,6 @@ async function error (data) { } module.exports = new ThreadWorker(error, { - maxInactiveTime: 500, - killBehavior: KillBehaviors.HARD + killBehavior: KillBehaviors.HARD, + maxInactiveTime: 500 })