Merge pull request #198 from mumoshu/fix-ci-flakiness

fix(ci): Reduce flakiness
This commit is contained in:
KUOKA Yusuke 2018-07-25 23:24:44 +09:00 committed by GitHub
commit 92d09a3e92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -36,7 +36,8 @@ function retry() {
${command} && break # substitute your command here
retry_result=$?
n=$[$n+1]
sleep 1
# approximated binary exponential backoff to reduce flakiness
sleep $((n ** 2))
done
}