forked from web-platform-tests/wpt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[remote] Ensure that asyncio event loop outlives webdriver connection
Depends on D122577 When using the BiDiSession class we need the event loop to live at least as long as a specific connection, but not necessarily as long as the BiDISession object itself. Therefore we move the loop parameter into the start() method, to associate a loop with a specific connection. In addition, in the tests we make the event loop a global so that it lives as long as a session; the fixture is updated to reuse the existing loop where possible. This has the tradeoff that we're more likely to share a loop between tests, so there is some additional hidden shared state. Differential Revision: https://phabricator.services.mozilla.com/D124834 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1694143 gecko-commit: 908c3e4788588a371b10b01e2e079df2cfb28b70 gecko-reviewers: webdriver-reviewers, whimboo
- Loading branch information
Showing
2 changed files
with
29 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters