From 9251007caee171baa41a3cdd2ad95dc8b2b8f527 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B0=D1=80=D0=B8=D1=8F=20=D0=9C=D0=B0=D0=BB=D1=8B?= =?UTF-8?q?=D0=B3=D0=B8=D0=BD=D0=B0?= Date: Tue, 18 Jul 2023 12:28:42 +0300 Subject: [PATCH] throw error if writers < 1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Мария Малыгина --- scenarios/s3_multipart.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scenarios/s3_multipart.js b/scenarios/s3_multipart.js index 8a7e5fb..816b44b 100644 --- a/scenarios/s3_multipart.js +++ b/scenarios/s3_multipart.js @@ -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',