Skip to content

Commit

Permalink
Increasing the VU in receive Message
Browse files Browse the repository at this point in the history
  • Loading branch information
ausias-armesto committed Jul 4, 2024
1 parent 741d72f commit e0e76da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion k6/src/k6/constant-traffic.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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}'`)
}
}

Expand Down

0 comments on commit e0e76da

Please sign in to comment.