We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bed7b99 commit af10666Copy full SHA for af10666
1 file changed
tests/integration/customizations/s3/test_plugin.py
@@ -1374,12 +1374,12 @@ def test_mb_rb(self, s3_utils):
1374
def test_fail_mb_rb(self):
1375
#S3 can intermittenly return an `OperationAborted` exception instead of
1376
# `BucketAlreadyExists`, so we give this test three attempts
1377
- for _ in range(3):
+ for i in range(4):
1378
# Choose a bucket name that already exists.
1379
p = aws('s3 mb s3://mybucket')
1380
if "BucketAlreadyExists" in p.stderr:
1381
break
1382
- time.sleep(1)
+ time.sleep(2**i)
1383
assert "BucketAlreadyExists" in p.stderr
1384
assert p.rc == 1
1385
0 commit comments