Skip to content

Commit

Permalink
Add wait until 200
Browse files Browse the repository at this point in the history
Signed-off-by: Pavol Loffay <ploffay@redhat.com>
  • Loading branch information
pavolloffay committed Mar 16, 2018
1 parent 1df257d commit 83b7c23
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/travis/hotrod-integration-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ make docker-hotrod
export REPO=jaegertracing/example-hotrod

export CID=$(docker run -d -p 8080:8080 $REPO:latest)
i=0
while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' localhost:8080)" != "200" && ${i} < 5 ]]; do
sleep 1
i=$((i+1))
done
body=$(curl localhost:8080)
if [[ $body != *"Rides On Demand"* ]]; then
echo "String \"Rides On Demand\" is not present on the index page"
Expand Down

0 comments on commit 83b7c23

Please sign in to comment.