Skip to content

Commit aa58db4

Browse files
committed
Fix k6 ramp stage generation for zero vu step
1 parent 94b33cc commit aa58db4

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

benchmarks/k6/activity-ramp.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,9 @@ function loadConfig(): Config {
144144
}
145145

146146
function rampStages(cfg: Config): Array<{ duration: string; target: number }> {
147+
if (cfg.vuStep < 1) {
148+
fail('HYPEMAN_BENCH_VU_STEP must be at least 1');
149+
}
147150
const stages: Array<{ duration: string; target: number }> = [];
148151
for (let target = cfg.startVUs + cfg.vuStep; target <= cfg.maxVUs; target += cfg.vuStep) {
149152
stages.push({ duration: cfg.stageDuration, target });

0 commit comments

Comments
 (0)