-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Our list-databases test runs long and is bumping up against our timeout and failing sometimes.
- Loading branch information
1 parent
f7d2777
commit ae496ff
Showing
3 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
attempt_counter=0 | ||
max_attempts=100 | ||
|
||
echo "waiting for $1" | ||
until $(curl -m 1 --output /dev/null --silent --head --fail $1); do | ||
if [ ${attempt_counter} -eq ${max_attempts} ];then | ||
echo "" | ||
echo "Max attempts reached to $1" | ||
exit 1 | ||
fi | ||
|
||
echo "." | ||
attempt_counter=$(($attempt_counter+1)) | ||
sleep 5 | ||
done | ||
echo "$1 is up and running!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters