mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 00:32:11 +00:00
Bug 1477567 [wpt PR 12130] - Make servodriver wait until the server starts accepting TCP connections, a=testonly
Automatic update from web-platform-testsMerge pull request #12130 from web-platform-tests/sync_da7f3ae704391a903e01456ddfdd93c5136b58d0 Merge pull request #12130 from sync_da7f3ae704391a903e01456ddfdd93c5136b58d0 -- wpt-commits: 93e4f125b7c462af6e47ca30f9dfb3074e2e45a3 wpt-pr: 12130
This commit is contained in:
parent
0797284f89
commit
4773c82c66
@ -57,6 +57,9 @@ class ServoWebDriverProtocol(Protocol):
|
||||
|
||||
def connect(self):
|
||||
"""Connect to browser via WebDriver."""
|
||||
# Largish timeout for the case where we're booting an Android emulator.
|
||||
wait_for_service((self.host, self.port), timeout=120)
|
||||
|
||||
self.session = webdriver.Session(self.host, self.port, extension=ServoCommandExtensions)
|
||||
self.session.start()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user