Skip to content

Commit

Permalink
remove invalid sized allocation test for SerializedMessage. (ros2#2330)
Browse files Browse the repository at this point in the history
Signed-off-by: Tomoya Fujita <[email protected]>
  • Loading branch information
fujitatomoya authored and Barry-Xu-2018 committed Jan 12, 2024
1 parent 455e289 commit 5b31083
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions rclcpp/test/rclcpp/test_serialized_message.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 5b31083

Please sign in to comment.