-
Notifications
You must be signed in to change notification settings - Fork 587
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
tests: fix flaky TestAgent #4203
Conversation
4e6f4b9
to
326e44b
Compare
326e44b
to
0b1f163
Compare
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #4203 +/- ##
=====================================
Coverage 62.5% 62.5%
=====================================
Files 151 153 +2
Lines 16987 17008 +21
=====================================
+ Hits 10622 10640 +18
- Misses 5697 5698 +1
- Partials 668 670 +2
☔ View full report in Codecov by Sentry. |
Co-authored-by: Jakub Warczarek <jakub.warczarek@konghq.com>
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.
Just one small thing that I spotted
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.
🍏
* tests: fix flaky TestAgent * Apply suggestions from code review Co-authored-by: Jakub Warczarek <jakub.warczarek@konghq.com> * tests: address review comments, cleanup * tests: don't use assertions in goroutines in TestAgent * tests: don't use assertions in goroutines in TestAgent --------- Co-authored-by: Jakub Warczarek <jakub.warczarek@konghq.com>
What this PR does / why we need it:
This PR introduces a
Ticker
interface within the license agent and uses that to mock time 🕐 .This should help us fix #4200.
Which issue this PR fixes:
Fixes #4200.