mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-09 20:53:10 +00:00
test(websocket): remove excessive sleeping
This commit is contained in:
parent
05ffa036b3
commit
57378a7940
|
@ -66,14 +66,12 @@ def authenticated_websocket(
|
||||||
ValueError(TOKEN_REPO.get_tokens())
|
ValueError(TOKEN_REPO.get_tokens())
|
||||||
with connect_ws_authenticated(authorized_client) as websocket:
|
with connect_ws_authenticated(authorized_client) as websocket:
|
||||||
yield websocket
|
yield websocket
|
||||||
sleep(1)
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def unauthenticated_websocket(client) -> Generator[WebSocketTestSession, None, None]:
|
def unauthenticated_websocket(client) -> Generator[WebSocketTestSession, None, None]:
|
||||||
with connect_ws_not_authenticated(client) as websocket:
|
with connect_ws_not_authenticated(client) as websocket:
|
||||||
yield websocket
|
yield websocket
|
||||||
sleep(1)
|
|
||||||
|
|
||||||
|
|
||||||
def test_websocket_connection_bare(authorized_client):
|
def test_websocket_connection_bare(authorized_client):
|
||||||
|
|
Loading…
Reference in a new issue