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

fix: The random sample size is too small, which can easily cause unit… #3457

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

Conversation

harbourlga
Copy link
Contributor

… tests to fail.

Description (what this PR does / why we need it):

image

Increase the sample size of random and use percentages to judge the results

Which issue(s) this PR fixes (resolves / be part of):

Other special notes for the reviewers:

@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Nov 5, 2024
Copy link

codecov bot commented Nov 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.68%. Comparing base (4e9dac0) to head (d50539c).
Report is 9 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3457      +/-   ##
==========================================
- Coverage   84.12%   81.68%   -2.44%     
==========================================
  Files          89       92       +3     
  Lines        4182     4325     +143     
==========================================
+ Hits         3518     3533      +15     
- Misses        471      601     +130     
+ Partials      193      191       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

… tests to fail.

* lint: should omit type int from declaration of var randomNumber

* lint: gofumpt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant