-
Notifications
You must be signed in to change notification settings - Fork 464
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
Quickstart test: fail when server responds with error #759
Conversation
@janl that worked: https://travis-ci.org/hoodiehq/hoodie/builds/239092845. But it still tries it 60 times instead of stop trying after the first fail. Maybe there is no workaround for it because for the first few tries the server might not be up yet. I’d say this is good enough now. I’ll put in the workarounds from #758 so that the quickstart test passes again |
This is ready for review, ping @hoodiehq/maintainers |
|
$ curl --retry 60 http://localhost:8080
curl: (7) Failed to connect to localhost port 8080: Connection refused |
&
Together this means these settings won’t apply when the host is not reachable, but only when you get a timeout, or HTTP 5xx response. But not for a connection refused, or 4xx error. |
seems like curl can’t handle connection refused errors yet. It was brought up at curl/curl#1036, but was not yet implemented as it seems. Probably that’s why @benwhite-deltas implemented the manual loop :) |
ping @hoodiehq/maintainers this is ready for review |
4ab9daf
to
524276f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
closes #749