diff --git a/sros2/test/sros2/commands/security/verbs/fixtures/client_service_node.py b/sros2/test/sros2/commands/security/verbs/fixtures/client_service_node.py index c2e85418..2efcda3b 100644 --- a/sros2/test/sros2/commands/security/verbs/fixtures/client_service_node.py +++ b/sros2/test/sros2/commands/security/verbs/fixtures/client_service_node.py @@ -34,9 +34,9 @@ def destroy_node(self): super().destroy_node() -def main(args=None): +def main(): try: - with rclpy.init(args=args): + with rclpy.init(): node = ClientServiceNode() rclpy.spin(node) except (KeyboardInterrupt, ExternalShutdownException): diff --git a/sros2/test/sros2/commands/security/verbs/fixtures/pub_sub_node.py b/sros2/test/sros2/commands/security/verbs/fixtures/pub_sub_node.py index 14bc94e7..09c2c33d 100644 --- a/sros2/test/sros2/commands/security/verbs/fixtures/pub_sub_node.py +++ b/sros2/test/sros2/commands/security/verbs/fixtures/pub_sub_node.py @@ -37,9 +37,9 @@ def destroy_node(self): super().destroy_node() -def main(args=None): +def main(): try: - with rclpy.init(args=args): + with rclpy.init(): node = PubSubNode() rclpy.spin(node) except (KeyboardInterrupt, ExternalShutdownException):