Skip to content

Commit

Permalink
fix: reorder the condition check
Browse files Browse the repository at this point in the history
  • Loading branch information
penglei0 committed Sep 5, 2024
1 parent e2386ce commit cc8f152
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/run_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,14 +206,14 @@ def setup_test(test_case_yaml, network: INetwork):
return False
if proto_config.type == 'distributed':
# distributed protocol
if 'btp' in proto_config.name:
network.add_protocol_suite(BTP(proto_config))
if 'brtp_proxy' in proto_config.name:
network.add_protocol_suite(BRTPProxy(proto_config))
continue
if 'brtp' in proto_config.name:
network.add_protocol_suite(BRTP(proto_config))
continue
if 'brtp_proxy' in proto_config.name:
network.add_protocol_suite(BRTPProxy(proto_config))
if 'btp' in proto_config.name:
network.add_protocol_suite(BTP(proto_config))
continue
if 'tcp' in proto_config.name:
network.add_protocol_suite(StdProtocol(proto_config))
Expand Down

0 comments on commit cc8f152

Please sign in to comment.