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 HttpHealthCheck #34

Merged

Conversation

srichter
Copy link
Contributor

@srichter srichter commented Oct 3, 2020

This adds tests to cover the cases where a ConnectException or general Exception is thrown.

It adjusts the test shows_problem_if_connection_is_unreachable to load the http_error middleware so a BadResponseException is properly thrown and handled.

This brings coverage of HttpHealthCheck to 100%

Test handling of ConnectException and \Exception, Fix test that covers BadResponseException so the Exception is thrown
@tylerwoonton tylerwoonton self-assigned this Oct 3, 2020
@tylerwoonton
Copy link
Contributor

Thanks for the PR, @srichter! 👍🏻

@tylerwoonton tylerwoonton merged commit 84b32c9 into ans-group:master Oct 3, 2020
@tylerwoonton
Copy link
Contributor

@srichter srichter deleted the increase-http-check-test-coverage branch October 5, 2020 02:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants