From d412eafcaee8d1cf6756b906caa5c6ab5d3aacda Mon Sep 17 00:00:00 2001 From: Christophe Bedard Date: Thu, 13 Jun 2024 15:12:01 -0400 Subject: [PATCH] Expect rmw_destroy_wait_set to ret RMW_RET_INVALID_ARGUMENT (#234) Signed-off-by: Christophe Bedard --- test_rmw_implementation/test/test_wait_set.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_rmw_implementation/test/test_wait_set.cpp b/test_rmw_implementation/test/test_wait_set.cpp index 3e656604..1acc18e5 100644 --- a/test_rmw_implementation/test/test_wait_set.cpp +++ b/test_rmw_implementation/test/test_wait_set.cpp @@ -384,7 +384,7 @@ TEST_F(TestWaitSet, rmw_destroy_wait_set) { // Try to destroy a nullptr rmw_ret_t ret = rmw_destroy_wait_set(nullptr); - EXPECT_EQ(ret, RMW_RET_ERROR) << rcutils_get_error_string().str; + EXPECT_EQ(ret, RMW_RET_INVALID_ARGUMENT) << rcutils_get_error_string().str; rmw_reset_error(); // Created a valid wait set