From 1c73377792db3b854a83584557cd92c53e9cdd07 Mon Sep 17 00:00:00 2001 From: Dirk Thomas Date: Fri, 27 Jul 2018 14:29:40 -0700 Subject: [PATCH] fini clock --- rcl/test/rcl/test_wait.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rcl/test/rcl/test_wait.cpp b/rcl/test/rcl/test_wait.cpp index aa9f509e2..081277b73 100644 --- a/rcl/test/rcl/test_wait.cpp +++ b/rcl/test/rcl/test_wait.cpp @@ -242,6 +242,9 @@ TEST_F(CLASSNAME(WaitSetTestFixture, RMW_IMPLEMENTATION), canceled_timer) { // Check time int64_t diff = std::chrono::duration_cast(after_sc - before_sc).count(); EXPECT_LE(diff, RCL_MS_TO_NS(10) + TOLERANCE); + + ret = rcl_clock_fini(&clock); + EXPECT_EQ(RCL_RET_OK, ret) << rcl_get_error_string_safe(); } // Test rcl_wait_set_t with excess capacity works.