Skip to content

Commit

Permalink
Expect rmw_service_server_is_available to ret RMW_RET_INVALID_ARGUMENT (
Browse files Browse the repository at this point in the history
#231)

Signed-off-by: Christophe Bedard <[email protected]>
  • Loading branch information
christophebedard authored Jun 13, 2024
1 parent d412eaf commit 7c17c78
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test_rmw_implementation/test/test_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7c17c78

Please sign in to comment.