Skip to content

Commit

Permalink
Add retries for flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdemin committed Oct 14, 2021
1 parent fd4f52e commit db33a64
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tests/simulation/test_forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,16 @@ def test_fill_form_sample(target):
'transform': [{'css': '.unclosed-tag > #params'}, 'text'],
# 'headless': False,
}
ok, content = Checker(conf).check()
total_attempts = 3
for attempt in range(total_attempts):
try:
ok, content = Checker(conf).check()
except TypeError:
if attempt == total_attempts - 1:
raise
continue
else:
break
assert ok is True
assert content == "\n".join([
"name = aemn",
Expand Down

0 comments on commit db33a64

Please sign in to comment.