-
Notifications
You must be signed in to change notification settings - Fork 25
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
Making this test less flaky, and good error reports #1299
Making this test less flaky, and good error reports #1299
Conversation
let max_tolerance = (*expected as f64) * tolerance + 10.0; | ||
assert!( | ||
(expected - actual).abs() as f64 <= max_tolerance, | ||
"expected {:?} unmatched events, got {:?}", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it might be worth reframing this around "expected {:?} +/- {tolerance}"
); | ||
for (expected, actual) in zip(EXPECTED_HISTOGRAM.iter(), histogram) { | ||
assert!( | ||
(expected - actual).abs() <= expected / 20 + 10, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
something explaining this math would be helpful
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1299 +/- ##
==========================================
+ Coverage 93.41% 93.47% +0.05%
==========================================
Files 208 209 +1
Lines 33798 33823 +25
==========================================
+ Hits 31574 31615 +41
+ Misses 2224 2208 -16 ☔ View full report in Codecov by Sentry. |
fbce8ec
into
private-attribution:main
No description provided.