-
Notifications
You must be signed in to change notification settings - Fork 606
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 lease not always being released #5162
fix lease not always being released #5162
Conversation
The following is the coverage report on the affected files.
|
Codecov Report
@@ Coverage Diff @@
## main #5162 +/- ##
==========================================
+ Coverage 83.28% 83.43% +0.14%
==========================================
Files 283 283
Lines 7947 7961 +14
==========================================
+ Hits 6619 6642 +23
+ Misses 956 947 -9
Partials 372 372
Continue to review full report at Codecov.
|
/lgtm |
} | ||
return &myAdapter{} | ||
}) | ||
done := make(chan bool) |
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.
why do this in a test?
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's to make sure MainWithInformers runs before view.Unregister.
} | ||
return &myAdapter{} | ||
}) | ||
done := make(chan bool) |
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.
why do this in a test?
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.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: n3wscott The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Proposed Changes
Release Note
Docs