Skip to content

Commit 9044cac

Browse files
committed
Take Bot Suggestions to Improve Tests
- Implement the PR bots suggestions to add a sleep between retries.
1 parent 910a9c3 commit 9044cac

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

py/test/selenium/webdriver/common/devtools_tests.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,4 @@ def test_check_console_messages(driver, pages, recwarn):
5050
except AssertionError:
5151
if _ == 2:
5252
pytest.fail("Assertions failed after retries.")
53+
time.sleep(0.5) # Add a delay between retries

0 commit comments

Comments
 (0)