This is an automated email from the ASF dual-hosted git repository. pnoltes pushed a commit to branch feature/scheduled_event_on_event_thread in repository https://gitbox.apache.org/repos/asf/celix.git
commit 67505e552e581ba65019cd20e866203684b867b7 Author: Pepijn Noltes <[email protected]> AuthorDate: Sat Jun 24 07:36:42 2023 +0200 Add missing interval time to "becomes" test --- libs/framework/gtest/src/ScheduledEventTestSuite.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/framework/gtest/src/ScheduledEventTestSuite.cc b/libs/framework/gtest/src/ScheduledEventTestSuite.cc index e9f84325..6a49b024 100644 --- a/libs/framework/gtest/src/ScheduledEventTestSuite.cc +++ b/libs/framework/gtest/src/ScheduledEventTestSuite.cc @@ -282,7 +282,7 @@ TEST_F(ScheduledEventTestSuite, WakeUpEventTest) { // And the count becomes 2 within the interval including the error margin auto now = std::chrono::steady_clock::now(); - waitFor([&]() { return count.load() == 2; }, std::chrono::milliseconds{ALLOWED_ERROR_MARGIN_IN_MS}); + waitFor([&]() { return count.load() == 2; }, std::chrono::milliseconds{50 + ALLOWED_ERROR_MARGIN_IN_MS}); auto end = std::chrono::steady_clock::now(); auto diff = std::chrono::duration_cast<std::chrono::milliseconds>(end - now).count(); EXPECT_EQ(2, count.load());
