From 3793f370a85af87a662ce43f5ced325e65c70330 Mon Sep 17 00:00:00 2001 From: Ivan Santiago Paunovic Date: Mon, 21 Dec 2020 18:09:12 -0300 Subject: [PATCH] Fix wrong test expectations Signed-off-by: Ivan Santiago Paunovic --- rclcpp/test/rclcpp/test_publisher.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rclcpp/test/rclcpp/test_publisher.cpp b/rclcpp/test/rclcpp/test_publisher.cpp index bf02958990..5f0712fddc 100644 --- a/rclcpp/test/rclcpp/test_publisher.cpp +++ b/rclcpp/test/rclcpp/test_publisher.cpp @@ -506,6 +506,6 @@ TEST_F(TestPublisher, run_event_handlers) { for (const auto & handler : publisher->get_event_handlers()) { std::shared_ptr data = handler->take_data(); - EXPECT_THROW(handler->execute(data), std::runtime_error); + handler->execute(data); } }