-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
[py] Fix broken test for chromedriver logging #15579
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[py] Fix broken test for chromedriver logging #15579
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to c53d0cf
Previous suggestions✅ Suggestions up to commit e6957ec
|
Fixed first PR review suggestion.
This suggestion by AI already exists... no idea what it's talking about. |
one of the test failures in CI was fixed in #15580 ... the other failure is unrelated to this PR. |
User description
💥 What does this PR do?
This is a fix to the internal Python test suite.
This PR fixes the
test_uses_chromedriver_logging
test inpy/test/selenium/webdriver/chrome/chrome_service_tests.py
.Previously, this test was failing because it was attempting to launch 2 browsers using the same
Service
object. This is not possible and results in an error:This PR creates 2
Service
objects so each driver instance can use its own.(This test was somehow passing in CI, but I have no idea why... it consistently fails for me locally until this fix is applied)
🔄 Types of changes
PR Type
Bug fix, Tests
Description
Fixed a broken test for ChromeDriver logging in Python.
Updated
test_uses_chromedriver_logging
to use separateService
objects.Resolved issue with launching multiple browsers using the same
Service
.Ensured test consistency across local and CI environments.
Changes walkthrough 📝
chrome_service_tests.py
Fix and improve ChromeDriver logging test
py/test/selenium/webdriver/chrome/chrome_service_tests.py
test_uses_chromedriver_logging
to use twoService
objects.Service
for multiple drivers.