Skip to content

Commit

Permalink
remove invalid sized allocation test for SerializedMessage. (#2330)
Browse files Browse the repository at this point in the history
Signed-off-by: Tomoya Fujita <[email protected]>
  • Loading branch information
fujitatomoya authored Oct 6, 2023
1 parent 9019a8d commit 77c7aaf
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 77c7aaf

Please sign in to comment.