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/09/26 19:14:34 UTC

[celix] branch feature/659-fix-flaky-scheduled-event-tests created (now fc46e3b0)

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

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


      at fc46e3b0 #659: Relax timing on scheduled event tests for local testing

This branch includes the following new commits:

     new fc46e3b0 #659: Relax timing on scheduled event tests for local testing

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[celix] 01/01: #659: Relax timing on scheduled event tests for local testing

Posted by pn...@apache.org.
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 <pe...@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;