-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flaky test_framework tests #659
Comments
The ScheduledEventTestSuite tests scheduled events and scheduled events are - as designed - time sensitive. I tried to allow enough error margin so that these test are not flaky, but evidently not enough. #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;
#else
const int ALLOWED_ERROR_MARGIN_IN_MS = 100;
#endif I will look into this. |
With the |
And as expected, #587 is not a macOS-specific issue. |
…vent-tests #659: Relax timing on scheduled event tests for local testing
Between different test runs some of the test_framework tests fail:
It is not always that all three fail, I have also seen cases where only e.g. the
ScheduledEventTestSuite.CxxOneShotScheduledEventRAIITest
test fails.Built and run with
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DENABLE_TESTING=ON .. && make -j && ctest --output-on-failure
To test the 'flakyness', I ran only the
test_framework
withfor i in $(seq 0 50); do ctest --output-on-failure -R test_framework; done
. Out of the 50 results I had:ScheduledEventTestSuite.CxxOneShotScheduledEventRAIITest
ScheduledEventTestSuite.CxxScheduledEventTest
==== Log of first test failure ===
ScheduledEventTestSuite.CxxWaitForScheduledEventTest
ScheduledEventTestSuite.CxxOneShotScheduledEventRAIITest
ScheduledEventTestSuite.CxxOneShotScheduledEventTest
The text was updated successfully, but these errors were encountered: