This is an automated email from the ASF dual-hosted git repository.

pnoltes pushed a commit to branch feature/659-fix-flaky-scheduled-event-tests
in repository https://gitbox.apache.org/repos/asf/celix.git

commit fc46e3b04fd2faa2af6101a815a8aeb6db570bfe
Author: Pepijn Noltes <pepijnnol...@gmail.com>
AuthorDate: Tue Sep 26 21:14:26 2023 +0200

    #659: Relax timing on scheduled event tests for local testing
---
 libs/framework/gtest/src/ScheduledEventTestSuite.cc | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/libs/framework/gtest/src/ScheduledEventTestSuite.cc 
b/libs/framework/gtest/src/ScheduledEventTestSuite.cc
index 497c751e..56949ff6 100644
--- a/libs/framework/gtest/src/ScheduledEventTestSuite.cc
+++ b/libs/framework/gtest/src/ScheduledEventTestSuite.cc
@@ -25,12 +25,10 @@
 
 class ScheduledEventTestSuite : public ::testing::Test {
   public:
-#if defined(__APPLE__) && defined(TESTING_ON_CI)
-    const int ALLOWED_ERROR_MARGIN_IN_MS = 1500;
-#elif TESTING_ON_CI
-    const int ALLOWED_ERROR_MARGIN_IN_MS = 1000;
+#if defined(__APPLE__) || defined(TESTING_ON_CI)
+    const int ALLOWED_ERROR_MARGIN_IN_MS = 2000;
 #else
-    const int ALLOWED_ERROR_MARGIN_IN_MS = 100;
+    const int ALLOWED_ERROR_MARGIN_IN_MS = 1000;
 #endif
 
     const double ALLOWED_PROCESSING_TIME_IN_SECONDS = 0.1;

Reply via email to