test(websocket): remove excessive sleeping

This commit is contained in:
Houkime 2024-05-27 21:15:47 +00:00 committed by Inex Code
parent 05ffa036b3
commit 57378a7940

View file

@ -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):