From 5b0137c399d8435d4cba99c300f8778f6dcddefe Mon Sep 17 00:00:00 2001 From: Jorge Perez Date: Mon, 14 Sep 2020 12:42:24 -0300 Subject: [PATCH] Replace expect tests with asserts Signed-off-by: Jorge Perez --- rclcpp/test/rclcpp/test_type_support.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/rclcpp/test/rclcpp/test_type_support.cpp b/rclcpp/test/rclcpp/test_type_support.cpp index e4e99b715e..41c6d745e5 100644 --- a/rclcpp/test/rclcpp/test_type_support.cpp +++ b/rclcpp/test/rclcpp/test_type_support.cpp @@ -154,48 +154,48 @@ TEST_F(TestTypeSupport, basic_getters) { TEST_F(TestTypeSupport, test_service_ts_get_params_srv) { const rosidl_service_type_support_t * ts = rclcpp::type_support::get_get_parameters_srv_type_support(); - EXPECT_NE(nullptr, ts); + ASSERT_NE(nullptr, ts); EXPECT_TRUE(test_type_support_init_fini(ts)); } TEST_F(TestTypeSupport, test_service_ts_get_params_srv_type) { const rosidl_service_type_support_t * ts = rclcpp::type_support::get_get_parameters_srv_type_support(); - EXPECT_NE(nullptr, ts); + ASSERT_NE(nullptr, ts); EXPECT_TRUE(test_type_support_init_fini(ts)); } TEST_F(TestTypeSupport, test_service_ts_get_parameters_types_srv) { const rosidl_service_type_support_t * ts = rclcpp::type_support::get_get_parameter_types_srv_type_support(); - EXPECT_NE(nullptr, ts); + ASSERT_NE(nullptr, ts); EXPECT_TRUE(test_type_support_init_fini(ts)); } TEST_F(TestTypeSupport, test_service_ts_set_params_srv) { const rosidl_service_type_support_t * ts = rclcpp::type_support::get_set_parameters_srv_type_support(); - EXPECT_NE(nullptr, ts); + ASSERT_NE(nullptr, ts); EXPECT_TRUE(test_type_support_init_fini(ts)); } TEST_F(TestTypeSupport, test_service_ts_list_params_srv) { const rosidl_service_type_support_t * ts = rclcpp::type_support::get_list_parameters_srv_type_support(); - EXPECT_NE(nullptr, ts); + ASSERT_NE(nullptr, ts); EXPECT_TRUE(test_type_support_init_fini(ts)); } TEST_F(TestTypeSupport, test_service_ts_describe_params_srv) { const rosidl_service_type_support_t * ts = rclcpp::type_support::get_describe_parameters_srv_type_support(); - EXPECT_NE(nullptr, ts); + ASSERT_NE(nullptr, ts); EXPECT_TRUE(test_type_support_init_fini(ts)); } TEST_F(TestTypeSupport, test_service_ts_set_params_atomically_srv) { const rosidl_service_type_support_t * ts = rclcpp::type_support::get_set_parameters_atomically_srv_type_support(); - EXPECT_NE(nullptr, ts); + ASSERT_NE(nullptr, ts); EXPECT_TRUE(test_type_support_init_fini(ts)); }