Skip to content

Commit

Permalink
Extend startup time
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Aug 10, 2016
1 parent fd3c875 commit e35c629
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .ci/first_startup.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
#!/bin/bash
TRIES=120
URL=http://localhost:8080
echo "Testing for correct startup:"
bash run.sh --daemon && sleep 30s && curl -I localhost:8080
EXIT_CODE=$?
bash run.sh --daemon && \
while [[ $i -le $TRIES ]]
do
curl "$URL" && EXIT_CODE=0 && break
sleep 1
EXIT_CODE=1
((i = i + 1))
done
echo "exit code:$EXIT_CODE, showing startup log:"
cat paster.log
exit $EXIT_CODE

0 comments on commit e35c629

Please sign in to comment.