forked from TrueCloudLab/xk6-frostfs
throw error if writers < 1
Signed-off-by: Мария Малыгина <m.malygina@yadro.com>
This commit is contained in:
parent
edc6e31223
commit
9251007cae
1 changed files with 8 additions and 0 deletions
|
@ -40,6 +40,14 @@ const write_vu_count = parseInt(__ENV.WRITERS || '0');
|
||||||
// write parts in parallel
|
// write parts in parallel
|
||||||
const write_multipart_vu_count = parseInt(__ENV.WRITERS_MULTIPART || '0');
|
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) {
|
if (write_vu_count > 0) {
|
||||||
scenarios.write = {
|
scenarios.write = {
|
||||||
executor: 'constant-vus',
|
executor: 'constant-vus',
|
||||||
|
|
Loading…
Reference in a new issue