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:58 UTC
[celix] 42/42: Relax timing in TimedWaitEventQueueTest test
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 abe8c76b55b28158ae3a675c98f54a9f9599d998
Author: Pepijn Noltes <pn...@apache.org>
AuthorDate: Mon Jun 26 20:05:19 2023 +0200
Relax timing in TimedWaitEventQueueTest test
---
libs/framework/gtest/src/CelixFrameworkTestSuite.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libs/framework/gtest/src/CelixFrameworkTestSuite.cc b/libs/framework/gtest/src/CelixFrameworkTestSuite.cc
index 459f7e75..6a695181 100644
--- a/libs/framework/gtest/src/CelixFrameworkTestSuite.cc
+++ b/libs/framework/gtest/src/CelixFrameworkTestSuite.cc
@@ -85,7 +85,7 @@ TEST_F(CelixFrameworkTestSuite, TimedWaitEventQueueTest) {
//And a generic event is fired, that block the queue for 20ms
auto callback = [](void* /*data*/) {
- std::this_thread::sleep_for(std::chrono::milliseconds{20});
+ std::this_thread::sleep_for(std::chrono::milliseconds{200});
};
celix_framework_fireGenericEvent(framework.get(), -1L, -1L, "test", nullptr, callback, nullptr, nullptr);