Skip to content

Commit 7b2a920

Browse files
committed
retry flakey tests
1 parent 71e1d63 commit 7b2a920

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

test/asynchronous/unified_format.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1394,7 +1394,9 @@ async def run_scenario(self, spec, uri=None):
13941394
for i in range(attempts):
13951395
try:
13961396
return await self._run_scenario(spec, uri)
1397-
except AssertionError:
1397+
except (AssertionError, OperationFailure) as exc:
1398+
if isinstance(exc, OperationFailure) and "failpoint" not in exc._message:
1399+
raise
13981400
if i < attempts - 1:
13991401
print(
14001402
f"Retrying after attempt {i+1} of {self.id()} failed with:\n"

test/unified_format.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1381,7 +1381,9 @@ def run_scenario(self, spec, uri=None):
13811381
for i in range(attempts):
13821382
try:
13831383
return self._run_scenario(spec, uri)
1384-
except AssertionError:
1384+
except (AssertionError, OperationFailure) as exc:
1385+
if isinstance(exc, OperationFailure) and "failpoint" not in exc._message:
1386+
raise
13851387
if i < attempts - 1:
13861388
print(
13871389
f"Retrying after attempt {i+1} of {self.id()} failed with:\n"

0 commit comments

Comments
 (0)