Skip to content

Commit

Permalink
Merge pull request #81 from zebrunner/develop
Browse files Browse the repository at this point in the history
2.1 rc
  • Loading branch information
vdelendik authored Mar 21, 2022
2 parents eefbe9e + 58dc151 commit f940924
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions files/healthcheck
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,14 @@ if [[ -z $stf_device_pid ]]; then
exit 1
fi

#Hit the Appium status URL to see if it is available
# "appium" is linked container name so we can use it hostname for extra verification
if curl --retry 3 --retry-delay 10 -Is "http://appium:4723/wd/hub/status" | head -1 | grep -q '200 OK'
then
echo "Appium containr is up and running."
else
echo "Appium container is unhealthy!"
exit 1
fi

exit 0

0 comments on commit f940924

Please sign in to comment.