From 77c7aaf9178268c16dee8fc412537e9f67d2afe1 Mon Sep 17 00:00:00 2001 From: Tomoya Fujita Date: Fri, 6 Oct 2023 15:15:34 -0700 Subject: [PATCH] remove invalid sized allocation test for SerializedMessage. (#2330) 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) {