Skip to content
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

Cover NodeLabelCache case when computer is null #159

Merged

Conversation

MarkEWaite
Copy link
Contributor

Cover NodeLabelCache case when computer is null

Getting labels for a node is not expected to return null for the computer of the node, but if it returns null, the case is handled and now is also tested that it continues to be handled.

Checklist

  • I have read the CONTRIBUTING doc
  • I have added tests that verify my changes
  • Unit tests pass locally with my changes
  • I have added documentation as necessary
  • No spotbugs warnings were introduced with my changes

Types of changes

  • Test improvement

Getting labels for a node is not expected to return null for the computer
of the node, but if it returns null, the case is handled and now is also
tested that it continues to be handled.
@MarkEWaite MarkEWaite added tests test Automated test addition or improvement and removed tests labels Feb 8, 2020
@MarkEWaite MarkEWaite merged commit 66ca8cc into jenkinsci:master Feb 8, 2020
@MarkEWaite MarkEWaite deleted the improve-NodeLabelCache-coverage branch February 8, 2020 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Automated test addition or improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant