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

Increase test coverage for HealthCheckManager #4666

Merged
merged 1 commit into from
Jan 30, 2022

Conversation

rhowe
Copy link
Contributor

@rhowe rhowe commented Jan 30, 2022

Test the behaviour of HealthCheckManager#healthStateView() and
HealthCheckManager#healthStateViews()

Question: Is it correct that when a healthcheck is removed via HealthCheckManager#onHealthCheckRemoved(), HealthCheckManager#healthStateViews() returns a collection containing null? Should onHealthCheckRemoved() remove it from the checks collection?

onHealthCheckRemoved() is never called by Dropwizard.

Test the behaviour of `HealthCheckManager#healthStateView()` and
`HealthCheckManager#healthStateViews()`
@rhowe rhowe requested a review from a team as a code owner January 30, 2022 09:20
Copy link
Member

@joschi joschi left a comment

Choose a reason for hiding this comment

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

@rhowe Thanks!

@joschi joschi added this to the 2.1.0 milestone Jan 30, 2022
@joschi joschi merged commit afa7ecd into dropwizard:master Jan 30, 2022
@rhowe rhowe deleted the more-healthcheckmanager-tests branch January 31, 2022 09:05
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.

2 participants