1
0
mirror of https://github.com/chubin/cheat.sh.git synced 2026-06-20 13:16:44 +02:00

Use curl retry flags for waiting for service

`--connect-timeout` didn't work, because Docker allows it, but breaks,
because nothing is listening on the other side, giving this error.

    $ curl --connect-timeout 10 http://localhost:8002
    curl: (56) Recv failure: Connection reset by peer
    The command "curl --connect-timeout 10 http://localhost:8002" exited with 56.

https://travis-ci.org/github/chubin/cheat.sh/builds/741348053#L401

`--retry-all` makes `curl` retry on all errors, including connection resets.
This commit is contained in:
Anatoli Babenia
2020-11-04 15:14:11 +03:00
committed by GitHub
parent 267c7d994e
commit 8949a8eac8
+1 -1
View File
@@ -10,7 +10,7 @@ before_install:
- docker-compose ps
script:
- curl --connect-timeout 10 http://localhost:8002
- curl --retry 3 --retry-all http://localhost:8002
- docker-compose logs --no-color
- docker logs chtsh
- CHEATSH_TEST_STANDALONE=NO bash tests/run-tests.sh