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

Test/poll daemon #851

Merged
merged 5 commits into from
Mar 4, 2015
Merged

Test/poll daemon #851

merged 5 commits into from
Mar 4, 2015

Conversation

cryptix
Copy link
Contributor

@cryptix cryptix commented Mar 4, 2015

In the quest for more stable tests (#844) we also want a better way to notice when the daemon is ready to accept http requests.

Previously we had a sleep/grep construction. This uses a small go program that polls an endpoint and returns with exit code zero when it returns http 200 ok

@btc btc added the status/in-progress In progress label Mar 4, 2015
@cryptix
Copy link
Contributor Author

cryptix commented Mar 4, 2015

I forgot to mention that this also adds the /version endpoint to the JSON API on port 5001.

}
p := addr.Protocols()
if len(p) < 2 {
log.WithField("addr", addr).Fatal("need to protocolls in host flag.")
Copy link
Member

Choose a reason for hiding this comment

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

"need two protocols in host flag (/ip/tcp)"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@jbenet
Copy link
Member

jbenet commented Mar 4, 2015


@jbenet
Copy link
Member

jbenet commented Mar 4, 2015

this is my favorite PR in a while.

jbenet added a commit that referenced this pull request Mar 4, 2015
@jbenet jbenet merged commit 0adde5c into master Mar 4, 2015
@jbenet jbenet removed the status/in-progress In progress label Mar 4, 2015
@jbenet jbenet deleted the test/pollDaemon branch March 4, 2015 15:33
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.

3 participants