diff --git a/rclcpp/CMakeLists.txt b/rclcpp/CMakeLists.txt index 275b9c6..81543dc 100644 --- a/rclcpp/CMakeLists.txt +++ b/rclcpp/CMakeLists.txt @@ -238,7 +238,7 @@ if(BUILD_TESTING) ) target_link_libraries(test_loaned_message ${PROJECT_NAME}) - ament_add_gtest(test_node test/test_node.cpp) + ament_add_gtest(test_node test/test_node.cpp TIMEOUT 240) if(TARGET test_node) ament_target_dependencies(test_node "rcl_interfaces" diff --git a/rclcpp/test/test_node.cpp b/rclcpp/test/test_node.cpp index 5d745b0..1eddeea 100644 --- a/rclcpp/test/test_node.cpp +++ b/rclcpp/test/test_node.cpp @@ -140,22 +140,6 @@ TEST_F(TestNode, subnode_get_name_and_namespace) { EXPECT_STREQ("sub_ns", subnode->get_sub_namespace().c_str()); EXPECT_STREQ("/ns/sub_ns", subnode->get_effective_namespace().c_str()); } - { - auto node = std::make_shared("my_node", "/ns"); - auto subnode = node->create_sub_node("sub_ns"); - EXPECT_STREQ("my_node", subnode->get_name()); - EXPECT_STREQ("/ns", subnode->get_namespace()); - EXPECT_STREQ("sub_ns", subnode->get_sub_namespace().c_str()); - EXPECT_STREQ("/ns/sub_ns", subnode->get_effective_namespace().c_str()); - } - { - auto node = std::make_shared("my_node"); - auto subnode = node->create_sub_node("sub_ns"); - EXPECT_STREQ("my_node", subnode->get_name()); - EXPECT_STREQ("/", subnode->get_namespace()); - EXPECT_STREQ("sub_ns", subnode->get_sub_namespace().c_str()); - EXPECT_STREQ("/sub_ns", subnode->get_effective_namespace().c_str()); - } { auto node = std::make_shared("my_node", "/ns"); auto subnode = node->create_sub_node("sub_ns");