Skip to content

Commit 54e80d5

Browse files
authored
Fix name of argument passed to NodeStrategy (#227)
NodeStrategy does not look for an argument named 'use_daemon'. Instead it checks for an argument named 'no_daemon'. https://github.com/ros2/ros2cli/blob/95bfb056df795b6eef8bb73b165db31fcf2d867a/ros2cli/ros2cli/node/strategy.py#L26 Signed-off-by: Jacob Perron <[email protected]>
1 parent dbec91d commit 54e80d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sros2/test/sros2/commands/security/verbs/utilities/sros2_cli_test_case.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def wait_for(self, expected_topics=[], expected_services=[]):
9696
if not expected_topics and not expected_services:
9797
return True
9898
args = argparse.Namespace()
99-
args.use_daemon = use_daemon
99+
args.no_daemon = not use_daemon
100100
args.spin_time = MAX_DISCOVERY_DELAY
101101
with NodeStrategy(args) as node:
102102
start_time = time.time()

0 commit comments

Comments
 (0)