diff --git a/rclpy/test/test_node.py b/rclpy/test/test_node.py index 86aa94963..fe7a9e142 100644 --- a/rclpy/test/test_node.py +++ b/rclpy/test/test_node.py @@ -1530,7 +1530,7 @@ class TestCreateNode(unittest.TestCase): def test_use_global_arguments(self): context = rclpy.context.Context() rclpy.init( - args=['process_name', '--ros-args', '__node:=global_node_name'], + args=['process_name', '--ros-args', '-r', '__node:=global_node_name'], context=context ) try: @@ -1550,7 +1550,7 @@ def test_node_arguments(self): rclpy.init(context=context) try: node = rclpy.create_node( - 'my_node', namespace='/my_ns', cli_args=['__ns:=/foo/bar'], context=context) + 'my_node', namespace='/my_ns', cli_args=['-r', '__ns:=/foo/bar'], context=context) self.assertEqual('/foo/bar', node.get_namespace()) node.destroy_node() finally: diff --git a/rclpy/test/test_utilities.py b/rclpy/test/test_utilities.py index b73488f5f..e5ef15169 100644 --- a/rclpy/test/test_utilities.py +++ b/rclpy/test/test_utilities.py @@ -25,8 +25,8 @@ def test_remove_ros_args(self): 'process_name', '-d', '--ros-args', - '__ns:=/foo/bar', - '__ns:=/fiz/buz', + '-r', '__ns:=/foo/bar', + '-r', '__ns:=/fiz/buz', '--', '--foo=bar', '--baz'