-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Bug in manager_test #429
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
Comments
cc: @droot @DirectXMan12 |
You almost always want to use GinkgoRecover when spawing goroutines (which a runnable is), and just about anything can panic (yay side effects not captured by the type system). In this case, for instance, if that channel is somehow nil, the test could panic. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Closing in favor of #764 /close |
@vincepri: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/kind bug
controller-runtime/pkg/manager/manager_test.go
Lines 254 to 286 in d6324a4
This piece of code should expect an error in the end but actually it's not.
This test case should not panic, it should not use
GinkgoRecover
.Probably there is a bug in the test.
The text was updated successfully, but these errors were encountered: