diff --git a/scenarios/grpc.js b/scenarios/grpc.js index 9c8d0df..1ac66ba 100644 --- a/scenarios/grpc.js +++ b/scenarios/grpc.js @@ -66,6 +66,10 @@ if (read_vu_count > 0) { const delete_vu_count = parseInt(__ENV.DELETERS || '0'); if (delete_vu_count > 0) { + if (!obj_to_delete_selector) { + throw new Error('Positive DELETE worker number without a proper object selector'); + } + scenarios.delete = { executor: 'constant-vus', vus: delete_vu_count, diff --git a/scenarios/s3.js b/scenarios/s3.js index cc8d294..827c936 100644 --- a/scenarios/s3.js +++ b/scenarios/s3.js @@ -65,6 +65,10 @@ if (read_vu_count > 0) { const delete_vu_count = parseInt(__ENV.DELETERS || '0'); if (delete_vu_count > 0) { + if (!obj_to_delete_selector) { + throw 'Positive DELETE worker number without a proper object selector'; + } + scenarios.delete = { executor: 'constant-vus', vus: delete_vu_count,