Skip to content

Commit

Permalink
Merge pull request video-dev#816 from tjenkinson/patch-11
Browse files Browse the repository at this point in the history
functional tests: add delay between attempts
  • Loading branch information
mangui authored Nov 14, 2016
2 parents af5585e + 0d690c8 commit 2da2afa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ elif [ "${TRAVIS_MODE}" = "funcTests" ]; then
do
if [ $n -gt 0 ]; then
echo "Retrying... Attempt: $((n+1))"
delay=$((n*60))
echo "Waiting ${delay} seconds..."
sleep $delay
fi
npm run testfunc && break
n=$[$n+1]
Expand Down

0 comments on commit 2da2afa

Please sign in to comment.