Merge pull request #49290 from rallytime/bp-44504

Back-port #44504 to 2017.7
This commit is contained in:
Nicole Thomas 2018-08-24 08:35:43 -04:00 committed by GitHub
commit c7bae5e795
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -201,7 +201,7 @@ def flaky(caller=None, condition=True):
try:
return caller(cls)
except Exception as exc:
if attempt == 4:
if attempt >= 3:
raise exc
backoff_time = attempt ** 2
log.info('Found Exception. Waiting %s seconds to retry.', backoff_time)