From bf05c0b05232c22ac6076006209e2ddec99b58c3 Mon Sep 17 00:00:00 2001 From: Sai Kishor Kothakota Date: Fri, 13 Sep 2024 19:31:34 +0200 Subject: [PATCH] robustify tests --- test/test_async_function_handler.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/test/test_async_function_handler.cpp b/test/test_async_function_handler.cpp index 5fd11a4..451a379 100644 --- a/test/test_async_function_handler.cpp +++ b/test/test_async_function_handler.cpp @@ -368,6 +368,7 @@ TEST_F(AsyncFunctionHandlerTest, check_exception_handling) ASSERT_TRUE(async_class.get_handler().is_initialized()); ASSERT_TRUE(async_class.get_handler().is_running()); ASSERT_FALSE(async_class.get_handler().is_stopped()); + async_class.get_handler().wait_for_trigger_cycle_to_finish(); ASSERT_LE(async_class.get_counter(), std::numeric_limits::max()); std::this_thread::sleep_for(std::chrono::microseconds(10));