throw error if writers < 1

Signed-off-by: Мария Малыгина <m.malygina@yadro.com>
This commit is contained in:
Мария Малыгина 2023-07-18 12:28:42 +03:00
parent edc6e31223
commit 9251007cae

View file

@ -40,6 +40,14 @@ const write_vu_count = parseInt(__ENV.WRITERS || '0');
// write parts in parallel
const write_multipart_vu_count = parseInt(__ENV.WRITERS_MULTIPART || '0');
if (write_vu_count < 1) {
throw 'number of VUs performing upload payload operation should be greater than 0';
}
if (WRITERS_MULTIPART < 1) {
throw 'number of parts to upload in parallel should be greater than 0';
}
if (write_vu_count > 0) {
scenarios.write = {
executor: 'constant-vus',