Skip to content

Reducing flakiness by increasing waiting time#628

Open
java-codehunger wants to merge 1 commit into
qos-ch:masterfrom
java-codehunger:fix-flaky-failure
Open

Reducing flakiness by increasing waiting time#628
java-codehunger wants to merge 1 commit into
qos-ch:masterfrom
java-codehunger:fix-flaky-failure

Conversation

@java-codehunger

Copy link
Copy Markdown

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.

1 participant