mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
ci: shorter wait timeout for saucelabs and browserstack (#6317)
* Changes the wait timeout for Saucelabs and Browserstack from 2 minutes to 1 minute. This is possible now because if the timeout fails we still re-try to create a connection a second time.
This commit is contained in:
committed by
mmalerba
parent
4851dea42e
commit
0680774fcd
@@ -1,6 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
TUNNEL_LOG="$LOGS_DIR/browserstack-tunnel.log"
|
||||
WAIT_DELAY=60
|
||||
|
||||
# Method that prints the logfile output of the browserstack tunnel.
|
||||
printLog() {
|
||||
@@ -24,7 +25,9 @@ fi
|
||||
while [ ! -f $BROWSER_PROVIDER_READY_FILE ]; do
|
||||
let "counter++"
|
||||
|
||||
if [ $counter -gt 240 ]; then
|
||||
# Counter needs to be multiplied by two because the while loop only sleeps a half second.
|
||||
# This has been made in favor of better progress logging (printing dots every half second)
|
||||
if [ $counter -gt $[${WAIT_DELAY} * 2] ]; then
|
||||
echo
|
||||
echo "Timed out after 2 minutes waiting for tunnel ready file"
|
||||
printLog
|
||||
@@ -32,7 +35,7 @@ while [ ! -f $BROWSER_PROVIDER_READY_FILE ]; do
|
||||
fi
|
||||
|
||||
printf "."
|
||||
sleep .5
|
||||
sleep 0.5
|
||||
done
|
||||
|
||||
echo ""
|
||||
|
||||
Reference in New Issue
Block a user