Skip to content

Commit

Permalink
Make servodriver wait until the server starts accepting TCP connections
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSapin committed Jul 19, 2018
1 parent 780e21c commit 9b80369
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -57,6 +57,9 @@ def __init__(self, executor, browser, capabilities, **kwargs):

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()

Expand Down

0 comments on commit 9b80369

Please sign in to comment.