From 893607440bbd583174d94087bff2b3ec41da197b Mon Sep 17 00:00:00 2001 From: Tomoya Fujita Date: Fri, 6 Oct 2023 00:10:36 -0700 Subject: [PATCH] remove invalid sized allocation test for SerializedMessage. Signed-off-by: Tomoya Fujita --- rclcpp/test/rclcpp/test_serialized_message.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/rclcpp/test/rclcpp/test_serialized_message.cpp b/rclcpp/test/rclcpp/test_serialized_message.cpp index 0a020bb7c0..67a2d9b2be 100644 --- a/rclcpp/test/rclcpp/test_serialized_message.cpp +++ b/rclcpp/test/rclcpp/test_serialized_message.cpp @@ -145,11 +145,6 @@ TEST(TestSerializedMessage, reserve) { // Resize using reserve method serialized_msg.reserve(15); EXPECT_EQ(15u, serialized_msg.capacity()); - - // Use invalid value throws exception - EXPECT_THROW( - {serialized_msg.reserve(-1);}, - rclcpp::exceptions::RCLBadAlloc); } TEST(TestSerializedMessage, serialization) {