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

[5.x] Decrease the failure rate of RandomTest #10238

Merged
merged 1 commit into from
May 30, 2024
Merged

Conversation

jasonvarga
Copy link
Member

@jasonvarga jasonvarga commented May 30, 2024

This pesky test fails every now and then and has finally got under my skin enough to fix it.

CleanShot 2024-05-30 at 16 27 57

We copied the test from the shuffle test - where this made more sense. The shuffle modifier gives you back a 26-item array. That's a huge number of combinations.

But in the random modifier, it's pulling one item out of the 26. The odds of you picking the same single number out of 26 is much higher.

This PR bumps 26 possibilities to 5000. If we see a failure now, buy a lottery ticket.

@jasonvarga jasonvarga merged commit 31dc040 into 5.x May 30, 2024
19 checks passed
@jasonvarga jasonvarga deleted the random-modifier-test branch May 30, 2024 20:30
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