From e0e76da41f940c1080392096d35f41af9d43e7e7 Mon Sep 17 00:00:00 2001 From: ausias-armesto Date: Thu, 4 Jul 2024 15:38:01 +0200 Subject: [PATCH] Increasing the VU in receive Message --- k6/src/k6/constant-traffic.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/k6/src/k6/constant-traffic.test.ts b/k6/src/k6/constant-traffic.test.ts index dba94d5..631192c 100644 --- a/k6/src/k6/constant-traffic.test.ts +++ b/k6/src/k6/constant-traffic.test.ts @@ -37,7 +37,7 @@ for (scenario in optionsData.scenarios) { optionsData.scenarios[scenario].preAllocatedVUs = Math.floor(amountOfSenders * (Number(__ENV.SCENARIO_ITERATIONS) || optionsData.scenarios[scenario].stages[1].target) / 2) scenariosLength++ } else { - optionsData.scenarios[scenario].vus = amountOfSenders * 2 + optionsData.scenarios[scenario].vus = amountOfSenders * 3 if (__ENV.SCENARIO_DURATION) { let duration = __ENV.SCENARIO_DURATION; let durationInSeconds = 70; @@ -116,6 +116,8 @@ export function receiveMessages(dataPool: { senders: HoprdNode[], nodes: HoprdNo }); }); check(websocketResponse, { 'status is 101': (r) => r && r.status === 101 }); + } else { + //console.log(`No sender nodes available for this VU '${execution.vu.idInInstance}'`) } }