You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2017/12/11 17:02:33 UTC

[GitHub] rabbah closed pull request #120: Fixed couchdbHealthCheck() timeout handling

rabbah closed pull request #120: Fixed couchdbHealthCheck() timeout handling
URL: https://github.com/apache/incubator-openwhisk-deploy-kube/pull/120
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/tools/travis/build.sh b/tools/travis/build.sh
index 7691097..2a05e03 100755
--- a/tools/travis/build.sh
+++ b/tools/travis/build.sh
@@ -23,6 +23,7 @@ couchdbHealthCheck () {
   TIMEOUT=0
   until [ $TIMEOUT -eq 30 ]; do
     if [ -n "$(kubectl -n openwhisk logs $POD_NAME | grep "successfully setup and configured CouchDB v2.0")" ]; then
+      PASSED=true
       break
     fi
 
@@ -30,7 +31,7 @@ couchdbHealthCheck () {
     sleep 10
   done
 
-  if [ $TIMEOUT -eq 25 ]; then
+  if [ "$PASSED" = false ]; then
     echo "Failed to finish deploying CouchDB"
 
     kubectl -n openwhisk logs $POD_NAME


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services