X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Fworker-files%2Fcluster%2FlongRunningWorkerHardBehavior.js;h=f2c0c1e40bd1c23671aa62679a0475b08e6c2fb6;hb=dbca3be954130834defeb4084096272ecf660c5c;hp=ec08d42540de16f50f3ad6b08eb8dc1bb7826b03;hpb=6db75ad932064c1415ff6f03645929530209a5fe;p=poolifier.git diff --git a/tests/worker-files/cluster/longRunningWorkerHardBehavior.js b/tests/worker-files/cluster/longRunningWorkerHardBehavior.js index ec08d425..f2c0c1e4 100644 --- a/tests/worker-files/cluster/longRunningWorkerHardBehavior.js +++ b/tests/worker-files/cluster/longRunningWorkerHardBehavior.js @@ -1,13 +1,12 @@ '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 sleep (data) { - return TestUtils.sleepWorkerFunction(data, 50000) + return sleepTaskFunction(data, 50000) } module.exports = new ClusterWorker(sleep, { maxInactiveTime: 500, - async: true, killBehavior: KillBehaviors.HARD })