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

[service_watcher] make sure to check for $EXIT in sleep loop #53

Merged
merged 10 commits into from
Jan 20, 2015

Conversation

martinrhoads
Copy link
Contributor

This PR fixes the issue that I describe in:

#54

we need a check method, and we add it to possible watchers you can request
we were getting `nil`, not an exception, when the check was not found
this means that rather than assuming the service starts out as down, we
explicitly report it as down to begin with
@igor47
Copy link
Collaborator

igor47 commented Jan 16, 2015

i ended up using this PR as an excuse to add a lot of test coverage. this meant refactoring the service_watcher object to make it more testable in the first place. i would love some eyes on this!

cc @bobtfish @martinrhoads @nelgau

igor47 added a commit that referenced this pull request Jan 20, 2015
[service_watcher] make sure to check for $EXIT in sleep loop
@igor47 igor47 merged commit da8374c into master Jan 20, 2015
@igor47 igor47 deleted the martin/exit_in_sleep branch January 20, 2015 20:48
@martinrhoads
Copy link
Contributor Author

yea!

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.

None yet

2 participants