X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Fworker-files%2Fthread%2FlongRunningWorkerSoftBehavior.js;h=3b90236c97cbdb61677fb2b4aae4bb08fadc8ca6;hb=8a7983a0862fe0b647c4f3c5a6b05155d4ce8c31;hp=65195d6f64388aaf7cc3e78eacf58ca35355a319;hpb=9c8526b801b42a5b40bfa5cec6f6e2082ffc9da7;p=poolifier.git diff --git a/tests/worker-files/thread/longRunningWorkerSoftBehavior.js b/tests/worker-files/thread/longRunningWorkerSoftBehavior.js index 65195d6f..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/index') -const TestUtils = require('../../test-utils') +const { ThreadWorker } = require('../../../lib') +const { sleepTaskFunction } = require('../../test-utils') async function sleep (data) { - return TestUtils.workerSleepFunction(data, 50000) + return sleepTaskFunction(data, 50000) } module.exports = new ThreadWorker(sleep, { - maxInactiveTime: 500, - async: true + maxInactiveTime: 500 })