From 7c17c783109a736ff5c136f178f4d14d6fe1211f Mon Sep 17 00:00:00 2001 From: Christophe Bedard Date: Thu, 13 Jun 2024 15:35:04 -0400 Subject: [PATCH] Expect rmw_service_server_is_available to ret RMW_RET_INVALID_ARGUMENT (#231) Signed-off-by: Christophe Bedard --- test_rmw_implementation/test/test_client.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test_rmw_implementation/test/test_client.cpp b/test_rmw_implementation/test/test_client.cpp index ffa6f426..b3323ed8 100644 --- a/test_rmw_implementation/test/test_client.cpp +++ b/test_rmw_implementation/test/test_client.cpp @@ -353,15 +353,15 @@ TEST_F(TestClientUse, service_server_is_available_bad_args) { bool is_available; rmw_ret_t ret = rmw_service_server_is_available(nullptr, client, &is_available); - EXPECT_EQ(ret, RMW_RET_ERROR) << rmw_get_error_string().str; + EXPECT_EQ(ret, RMW_RET_INVALID_ARGUMENT) << rmw_get_error_string().str; rmw_reset_error(); ret = rmw_service_server_is_available(node, nullptr, &is_available); - EXPECT_EQ(ret, RMW_RET_ERROR) << rmw_get_error_string().str; + EXPECT_EQ(ret, RMW_RET_INVALID_ARGUMENT) << rmw_get_error_string().str; rmw_reset_error(); ret = rmw_service_server_is_available(node, client, nullptr); - EXPECT_EQ(ret, RMW_RET_ERROR) << rmw_get_error_string().str; + EXPECT_EQ(ret, RMW_RET_INVALID_ARGUMENT) << rmw_get_error_string().str; rmw_reset_error(); const char * implementation_identifier = client->implementation_identifier;