projects
/
arvados-k8s.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch '16430-add-jenkins-integration-test-minikube'
[arvados-k8s.git]
/
tests
/
test_library.sh
diff --git
a/tests/test_library.sh
b/tests/test_library.sh
index f72f289341e0f9d0c0e25b7ac9ed3b03afdabf9c..ac77482aebd1b034310cb9908d0fdc45f81d8bcf 100755
(executable)
--- a/
tests/test_library.sh
+++ b/
tests/test_library.sh
@@
-78,11
+78,19
@@
startCluster() {
awaitHealthOK() {
echo "Waiting for cluster health OK..."
awaitHealthOK() {
echo "Waiting for cluster health OK..."
- while [ $ready -ne 1 ]; do
+ # Wait for up to 15 minutes for a healthy Arvados cluster.
+ counter=450
+ while [[ $ready -ne 1 ]] && [[ $counter -gt 0 ]]; do
testReady
kubectlStatus
sleep 2
testReady
kubectlStatus
sleep 2
+ (( counter = counter-1 )) || true
done
done
+ if [[ $ready -ne 1 ]]; then
+ echo "Timed out waiting for cluster health OK. Shutting down cluster..."
+ stopCluster
+ exit 1
+ fi
}
run() {
}
run() {