[#30] grpc: Do not start deleters without registry

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
remotes/fyrchik/master
Pavel Karpy 2022-10-26 19:08:45 +03:00 committed by fyrchik
parent 0e34bf64bd
commit 70d4b1db9d
2 changed files with 8 additions and 0 deletions

View File

@ -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,

View File

@ -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,