From 7029fcca1de318d5fb2fde10d37d2ba7dffc9040 Mon Sep 17 00:00:00 2001 From: Emil Tin Date: Mon, 10 Jul 2023 15:06:29 +0200 Subject: [PATCH] use empty component name to avoid auto-adding in tlc emulator --- spec/site/tlc/invalid_command_spec.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/spec/site/tlc/invalid_command_spec.rb b/spec/site/tlc/invalid_command_spec.rb index 8463775c..bcf81900 100644 --- a/spec/site/tlc/invalid_command_spec.rb +++ b/spec/site/tlc/invalid_command_spec.rb @@ -19,7 +19,10 @@ timeout: 0, intersection: 0 } - result = site.send_command Validator.config['main_component'], command_list, + # Note: the rsmp tlc emulator automatically adds compoents that it + # doesn't know, so you don't have to configure them manually in the supervisor + # However, it will refuse to add a component with an empty string ''. + result = site.send_command '', command_list, collect: { timeout: Validator.config['timeouts']['command_response'] }, validate: false # disable validation of outgoing message collector = result[:collector]