Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 45f006f

Browse files
juliemrpetebacondarwin
authored andcommitted
chore(ci): make wait_for_browser_provider time out after 2 minutes
Before, if something went wrong, wait_for_browser_provider.sh would wait indefinitely, and logs would never get printed. Now, we'll bail early, and get some actual logs on what the problem was. Closes #11350
1 parent 731e1f6 commit 45f006f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

scripts/travis/wait_for_browser_provider.sh

+8
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33

44
# Wait for Connect to be ready before exiting
5+
# Time out if we wait for more than 2 minutes, so that we can print logs.
6+
let "counter=0"
7+
58
while [ ! -f $BROWSER_PROVIDER_READY_FILE ]; do
9+
let "counter++"
10+
if [ $counter -gt 240 ]; then
11+
echo "Timed out after 2 minutes waiting for browser provider ready file"
12+
exit 5
13+
fi
614
sleep .5
715
done

0 commit comments

Comments
 (0)