From 49c989d5daa2bc7c976e1aa3cd6d2b4a5012390c Mon Sep 17 00:00:00 2001 From: dancher00 Date: Thu, 24 Sep 2026 02:55:59 +0300 Subject: [PATCH] Remove unused main args from test nodes Signed-off-by: dancher00 --- .../commands/security/verbs/fixtures/client_service_node.py | 4 ++-- .../sros2/commands/security/verbs/fixtures/pub_sub_node.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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):