Skip to content

Commit

Permalink
Another fix for Selenium testing on Jenkins.
Browse files Browse the repository at this point in the history
Turns out that random sleep for 30 seconds was every bit as brittle as it seemed. This is a bit better.
  • Loading branch information
jmchilton committed Jan 13, 2017
1 parent ec42500 commit 07806e6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .ci/jenkins/selenium/run_galaxy.bash
Expand Up @@ -2,9 +2,12 @@

set -e

sleep 30 # TODO: wait on something instead of just sleeping...

echo `df`
echo "Waiting for postgres to become available"
while ! nc -z postgres 5432;
do
sleep 1
printf "."
done

echo "Creating postgres database for Galaxy"
createdb -w -U postgres -h postgres galaxy
Expand Down

0 comments on commit 07806e6

Please sign in to comment.