You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@celix.apache.org by pn...@apache.org on 2023/06/28 15:23:57 UTC

[celix] 41/42: Increase sleep time to ensure timeout log message is printed for scheduled event test suite

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 55120acb429582dadd72a6c6c24fd5bb52c013ac
Author: Pepijn Noltes <pn...@apache.org>
AuthorDate: Sun Jun 25 21:13:34 2023 +0200

    Increase sleep time to ensure timeout log message is printed for scheduled event test suite
---
 libs/framework/gtest/src/ScheduledEventTestSuite.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libs/framework/gtest/src/ScheduledEventTestSuite.cc b/libs/framework/gtest/src/ScheduledEventTestSuite.cc
index 667973ec..7a457e4b 100644
--- a/libs/framework/gtest/src/ScheduledEventTestSuite.cc
+++ b/libs/framework/gtest/src/ScheduledEventTestSuite.cc
@@ -663,10 +663,10 @@ TEST_F(ScheduledEventTestSuite, ScheduledEventTimeoutLogTest) {
     opts.initialDelayInSeconds = 0.01;
     opts.intervalInSeconds = 0.01;
     opts.callback = [](void*){
-        std::this_thread::sleep_for(std::chrono::milliseconds{100});
+        std::this_thread::sleep_for(std::chrono::milliseconds{200});
     };
     opts.removeCallback = [](void*){
-        std::this_thread::sleep_for(std::chrono::milliseconds{100});
+        std::this_thread::sleep_for(std::chrono::milliseconds{200});
     };
     long eventId = celix_bundleContext_scheduleEvent(fw->getFrameworkBundleContext()->getCBundleContext(), &opts);