X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Fworker-files%2Fthread%2FlongRunningWorkerSoftBehavior.js;h=3b90236c97cbdb61677fb2b4aae4bb08fadc8ca6;hb=8a7983a0862fe0b647c4f3c5a6b05155d4ce8c31;hp=c6fa5393f44830bd9e8af28dabc473ad6198d8b3;hpb=cdace0e5b9082804893de9501372490ee1064090;p=poolifier.git diff --git a/tests/worker-files/thread/longRunningWorkerSoftBehavior.js b/tests/worker-files/thread/longRunningWorkerSoftBehavior.js index c6fa5393..3b90236c 100644 --- a/tests/worker-files/thread/longRunningWorkerSoftBehavior.js +++ b/tests/worker-files/thread/longRunningWorkerSoftBehavior.js @@ -1,12 +1,11 @@ 'use strict' const { ThreadWorker } = require('../../../lib') -const TestUtils = require('../../test-utils') +const { sleepTaskFunction } = require('../../test-utils') async function sleep (data) { - return TestUtils.sleepWorkerFunction(data, 50000) + return sleepTaskFunction(data, 50000) } module.exports = new ThreadWorker(sleep, { - maxInactiveTime: 500, - async: true + maxInactiveTime: 500 })