Improved test publisher - zero qos history depth value exception (#1360)
Signed-off-by: ahcorde <ahcorde@gmail.com>
This commit is contained in:
parent
8808f4b287
commit
2078887a2b
1 changed files with 5 additions and 0 deletions
|
@ -375,6 +375,11 @@ TEST_F(TestPublisher, intra_process_publish_failures) {
|
||||||
publisher->publish(std::move(loaned_msg)),
|
publisher->publish(std::move(loaned_msg)),
|
||||||
std::runtime_error("loaned message is not valid"));
|
std::runtime_error("loaned message is not valid"));
|
||||||
}
|
}
|
||||||
|
RCLCPP_EXPECT_THROW_EQ(
|
||||||
|
node->create_publisher<test_msgs::msg::Empty>(
|
||||||
|
"topic", rclcpp::QoS(0), options),
|
||||||
|
std::invalid_argument(
|
||||||
|
"intraprocess communication is not allowed with a zero qos history depth value"));
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_F(TestPublisher, inter_process_publish_failures) {
|
TEST_F(TestPublisher, inter_process_publish_failures) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue