go-kratos / kratos

Your ultimate Go microservices framework for the cloud-native era.
https://go-kratos.dev
MIT License
23.41k stars 4.01k forks source link

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

Open harbourlga opened 3 weeks ago

harbourlga commented 3 weeks ago

… 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:

codecov[bot] commented 3 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

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

Additional details and impacted files ```diff @@ 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 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.