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

Make FlakyRule tests less flaky #362

Merged
merged 4 commits into from
Aug 20, 2020
Merged

Make FlakyRule tests less flaky #362

merged 4 commits into from
Aug 20, 2020

Conversation

Sloy
Copy link
Member

@Sloy Sloy commented Aug 19, 2020

Using a random is not an ideal way to test the flaky rule. Because, once in a while, the randomness will make the test fail.

I replaced the random condition with a static boolean, that is shared between test repetitions. That way it's easier to deterministically make the test fail the first time only.

This should avoid some test failures that I've seen on CI

@Sloy Sloy requested a review from a team August 19, 2020 08:07
@Sloy Sloy merged commit 44fbd38 into master Aug 20, 2020
@Sloy Sloy deleted the flakyrule branch August 20, 2020 07:59
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.

2 participants