Skip to content

Unit tests for controllers #19

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

Merged
merged 1 commit into from
Apr 11, 2018
Merged

Unit tests for controllers #19

merged 1 commit into from
Apr 11, 2018

Conversation

bpineau
Copy link
Owner

@bpineau bpineau commented Apr 11, 2018

No description provided.


// this will trigger a deletion event
idx := ctrl.(*Controller).informer.GetIndexer()
idx.Add(obj1)
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error return value is not checked

@bpineau bpineau merged commit ca939f7 into master Apr 11, 2018
@bpineau bpineau deleted the controller_test branch April 11, 2018 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant