From 1a5558a3067a4fd929918d88aace10e9cd36baff Mon Sep 17 00:00:00 2001 From: Yusuke KUOKA Date: Wed, 25 Jul 2018 11:21:01 +0900 Subject: [PATCH] fix(ci): Reduce flakiness Fix #103 --- test/integration/run.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/integration/run.sh b/test/integration/run.sh index e5d4cb8d..adc78b6f 100755 --- a/test/integration/run.sh +++ b/test/integration/run.sh @@ -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 }