X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=tests%2Fworker-files%2Fthread%2FlongRunningWorkerHardBehavior.mjs;h=1762947a8d4fa2cf61d6d89eb0afe5c40459b6c0;hb=c5db2d3ea50692486410eb1a33e5bb51d6d4181e;hp=911ddb9ffdfc11542bb06a5dc7ae77bce6224867;hpb=229e9e73566ed1960ba5be0534fb3aa2eeb115eb;p=poolifier.git diff --git a/tests/worker-files/thread/longRunningWorkerHardBehavior.mjs b/tests/worker-files/thread/longRunningWorkerHardBehavior.mjs index 911ddb9f..1762947a 100644 --- a/tests/worker-files/thread/longRunningWorkerHardBehavior.mjs +++ b/tests/worker-files/thread/longRunningWorkerHardBehavior.mjs @@ -1,9 +1,10 @@ -import { KillBehaviors, ThreadWorker } from '../../../lib/index.js' -import { sleepTaskFunction } from '../../test-utils.js' +import { KillBehaviors, ThreadWorker } from '../../../lib/index.cjs' +import { sleepTaskFunction } from '../../test-utils.cjs' /** * * @param data + * @returns */ async function sleep (data) { return sleepTaskFunction(data, 50000) @@ -11,5 +12,5 @@ async function sleep (data) { export default new ThreadWorker(sleep, { killBehavior: KillBehaviors.HARD, - maxInactiveTime: 500 + maxInactiveTime: 500, })