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

[WIP]: HEALTHCHECK-based container readiness test #80

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

JayH5
Copy link
Contributor

@JayH5 JayH5 commented Oct 13, 2018

No description provided.

@codecov
Copy link

codecov bot commented Oct 13, 2018

Codecov Report

Merging #80 into develop will decrease coverage by 0.3%.
The diff coverage is 86.88%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop      #80      +/-   ##
===========================================
- Coverage      100%   99.69%   -0.31%     
===========================================
  Files           26       29       +3     
  Lines         2565     2612      +47     
  Branches       162      167       +5     
===========================================
+ Hits          2565     2604      +39     
- Misses           0        4       +4     
- Partials         0        4       +4
Impacted Files Coverage Δ
seaworthy/logs.py 100% <100%> (ø) ⬆️
seaworthy/_streams.py 100% <100%> (ø)
seaworthy/tests-core/test_events.py 100% <100%> (ø)
seaworthy/events.py 61.9% <61.9%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c06669d...32e02c7. Read the comment docs.

# Close the stream's underlying response object (if it has one) to
# avoid potential socket leaks.
if hasattr(stream, '_response'):
stream._response.close()
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't we close the stream here?

except TimeoutError:
raise TimeoutError(
"Timed out waiting for 'health_status' event with status '{}'"
.format(status))
Copy link
Member

Choose a reason for hiding this comment

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

Should pass the timeout message to stream_timeout instead of catching and throwing? That would reduce boilerplate, but also add the timeout machinery to the stack trace.

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