Skip to content
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

Reducing flakiness by increasing waiting time #628

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

java-codehunger
Copy link

What is the purpose of this PR

Why the test fails
When the main test thread executes the assertion given at Line 104, it is checking the value of a global variable recoveryCounter. This variable value is supposed to be set by another thread. However, due to some noise, sometimes that thread cannot set the value of recoveryCounter before the other thread checks the value. As a result, the flaky test failure occurs.

Fix
We increase the existing waiting time in the test before the assertion check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant