-
Notifications
You must be signed in to change notification settings - Fork 45
Add tests for Policer
#3556
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
Add tests for Policer
#3556
Conversation
1c5a223
to
071a5f8
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3556 +/- ##
==========================================
+ Coverage 24.93% 25.60% +0.67%
==========================================
Files 660 661 +1
Lines 49356 49446 +90
==========================================
+ Hits 12307 12663 +356
+ Misses 36059 35777 -282
- Partials 990 1006 +16 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Prevent data race conditions for tests run with `-race` flag. Signed-off-by: Leonard Lyubich <[email protected]>
071a5f8
to
2811d4c
Compare
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.
Looks like tests are missing in fact.
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.
In the previous force-push, I found that the tests that should be here were deleted. Or is that how it should be?
2811d4c
to
09753dd
Compare
fixed unadded files |
pkg/services/policer/policer_test.go
Outdated
} | ||
} | ||
if expShortage > 0 { | ||
require.Eventually(t, repTaskSubmitted, 300*time.Millisecond, 30*time.Millisecond) |
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.
300ms can be insufficient for busy GH runners.
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.
hmm, didn't think about it. How much u think to increase for better reliability?
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 like 3s, shouldn't affect regular operation much, but should be sufficient to prevent false negatives as well.
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.
done
Signed-off-by: Leonard Lyubich <[email protected]>
09753dd
to
f50ff81
Compare
No description provided.