Skip to content

Commit 7a316f7

Browse files
committed
try 3 times for csot
1 parent b83f9ba commit 7a316f7

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

test/asynchronous/unified_format.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1388,6 +1388,8 @@ async def run_scenario(self, spec, uri=None):
13881388
if re.match(flaky_test, self.id()) is not None:
13891389
func_name = self.id()
13901390
options = dict(reset_func=self.asyncSetUp, func_name=func_name)
1391+
if "csot" in func_name:
1392+
options["max_runs"] = 3
13911393
decorator = flaky(**options)
13921394
await decorator(self._run_scenario)(spec, uri)
13931395
return

test/unified_format.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1375,6 +1375,8 @@ def run_scenario(self, spec, uri=None):
13751375
if re.match(flaky_test, self.id()) is not None:
13761376
func_name = self.id()
13771377
options = dict(reset_func=self.setUp, func_name=func_name)
1378+
if "csot" in func_name:
1379+
options["max_runs"] = 3
13781380
decorator = flaky(**options)
13791381
decorator(self._run_scenario)(spec, uri)
13801382
return

0 commit comments

Comments
 (0)