Skip to content

Commit ed901a7

Browse files
committed
Fixes from review.
Signed-off-by: Chris Lalancette <[email protected]>
1 parent 9b9b9b7 commit ed901a7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

rclcpp/include/rclcpp/strategies/message_pool_memory_strategy.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class MessagePoolMemoryStrategy
8080
}
8181
}
8282
if (free_list_.size() == 0) {
83-
throw std::runtime_error("No more free slots in the pool!");
83+
throw std::runtime_error("No more free slots in the pool");
8484
}
8585
}
8686

rclcpp/test/rclcpp/strategies/test_message_pool_memory_strategy.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ TEST_F(TestMessagePoolMemoryStrategy, borrow_too_many) {
5656
// Size is 1, borrowing second time should fail
5757
RCLCPP_EXPECT_THROW_EQ(
5858
message_memory_strategy_->borrow_message(),
59-
std::runtime_error("No more free slots in the pool!"));
59+
std::runtime_error("No more free slots in the pool"));
6060
EXPECT_NO_THROW(message_memory_strategy_->return_message(message));
6161
}
6262

@@ -71,7 +71,7 @@ TEST_F(TestMessagePoolMemoryStrategy, borrow_hold_reference) {
7171
// But we are still holding the reference, so we expect that there is still no room in the pool.
7272
RCLCPP_EXPECT_THROW_EQ(
7373
message_memory_strategy_->borrow_message(),
74-
std::runtime_error("No more free slots in the pool!"));
74+
std::runtime_error("No more free slots in the pool"));
7575
}
7676

7777
// Now that we've dropped the reference (left the scope), we expect to be able to borrow again.

0 commit comments

Comments
 (0)