mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-06 00:10:25 +00:00
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:
parent
c77570b7c6
commit
8a9972eda9
@ -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):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user