Skip to content

Commit

Permalink
Address peer review comments.
Browse files Browse the repository at this point in the history
Signed-off-by: Michel Hidalgo <michel@ekumenlabs.com>
  • Loading branch information
hidmic committed Jun 22, 2020
1 parent f4a05ec commit 9bff7f2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test_rmw_implementation/test/test_init_shutdown.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,12 @@ TEST_F(CLASSNAME(TestInitShutdown, RMW_IMPLEMENTATION), shutdown_with_bad_argume
rcutils_reset_error();

rmw_context_t context = rmw_get_zero_initialized_context();
EXPECT_NE(RMW_RET_OK, rmw_shutdown(&context));
rmw_ret_t ret = rmw_shutdown(&context);
EXPECT_TRUE((RMW_RET_INCORRECT_RMW_IMPLEMENTATION == ret) ||
(RMW_RET_INVALID_ARGUMENT == ret));
rcutils_reset_error();

rmw_ret_t ret = rmw_init(&options, &context);
ret = rmw_init(&options, &context);
ASSERT_EQ(RMW_RET_OK, ret) << rcutils_get_error_string().str;
OSRF_TESTING_TOOLS_CPP_SCOPE_EXIT(
{
Expand Down

0 comments on commit 9bff7f2

Please sign in to comment.