oops, fix tests
In some tests, we artificially call _event_connected() without first initiating a connection.
This commit is contained in:
parent
5b5b4b7134
commit
996c739b2a
|
@ -371,7 +371,8 @@ class _Wormhole:
|
||||||
|
|
||||||
def _event_connected(self, ws):
|
def _event_connected(self, ws):
|
||||||
self._ws = ws
|
self._ws = ws
|
||||||
self._ws_t.finish()
|
if self._ws_t:
|
||||||
|
self._ws_t.finish()
|
||||||
|
|
||||||
def _event_ws_opened(self, _):
|
def _event_ws_opened(self, _):
|
||||||
self._connection_state = OPEN
|
self._connection_state = OPEN
|
||||||
|
|
Loading…
Reference in New Issue
Block a user