Merge pull request #198 from mumoshu/fix-ci-flakiness
fix(ci): Reduce flakiness
This commit is contained in:
commit
92d09a3e92
|
|
@ -36,7 +36,8 @@ function retry() {
|
||||||
${command} && break # substitute your command here
|
${command} && break # substitute your command here
|
||||||
retry_result=$?
|
retry_result=$?
|
||||||
n=$[$n+1]
|
n=$[$n+1]
|
||||||
sleep 1
|
# approximated binary exponential backoff to reduce flakiness
|
||||||
|
sleep $((n ** 2))
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue