From 1b4485443dab7f491e39d52bdfd527778c4eae79 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Tue, 3 Sep 2024 09:14:43 +0200 Subject: [PATCH] Correct node name in service test code (#2615) (#2616) Signed-off-by: Barry Xu (cherry picked from commit e846f56224a39b93f1c609e7ee03fff0662b7453) Co-authored-by: Barry Xu --- rclcpp/test/rclcpp/test_service.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rclcpp/test/rclcpp/test_service.cpp b/rclcpp/test/rclcpp/test_service.cpp index 1a00ceb527..c6b3d3ace1 100644 --- a/rclcpp/test/rclcpp/test_service.cpp +++ b/rclcpp/test/rclcpp/test_service.cpp @@ -123,7 +123,7 @@ TEST_F(TestServiceSub, construction_and_destruction) { { ASSERT_THROW( { - auto service = node->create_service( + auto service = subnode->create_service( "invalid_service?", callback); }, rclcpp::exceptions::InvalidServiceNameError); }