Bug 1653294 - Ensure HTTP connections are closed in websocket tests, r=webdriver-reviewers,whimboo

Differential Revision: https://phabricator.services.mozilla.com/D87494
This commit is contained in:
James Graham 2020-08-19 11:27:12 +00:00
parent c77570b7c6
commit 8a9972eda9

View File

@ -427,6 +427,8 @@ class Session(object):
if self.session_id is not None:
return
self.transport.close()
body = {"capabilities": {}}
if self.requested_capabilities is not None:
@ -452,6 +454,7 @@ class Session(object):
pass
finally:
self.session_id = None
self.transport.close()
def send_command(self, method, url, body=None, timeout=None):
"""