diff --git a/pyproject.toml b/pyproject.toml index 47fea39..ec46c00 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -79,7 +79,7 @@ requires-python = ">=3.8" dependencies = [ "anyio", "httpx>=0.23.1", - "httpcore>=0.17.3", + "httpcore>=1.0.4", "wsproto", ] diff --git a/tests/test_api.py b/tests/test_api.py index fcb5936..ea3bb4f 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -301,7 +301,6 @@ async def aclose(self) -> None: async def test_receive(self, server_factory: ServerFactoryFixture): async def websocket_endpoint(websocket: WebSocket): await websocket.accept() - await anyio.sleep(0.1) # FIXME: see #7 await websocket.send_text("SERVER_MESSAGE") @@ -343,7 +342,6 @@ async def test_receive_oversized_message( ): async def websocket_endpoint(websocket: WebSocket): await websocket.accept() - await anyio.sleep(0.1) # FIXME: see #7 method = getattr(websocket, send_method) await method(full_message) @@ -380,7 +378,6 @@ async def websocket_endpoint(websocket: WebSocket): async def test_receive_text(self, server_factory: ServerFactoryFixture): async def websocket_endpoint(websocket: WebSocket): await websocket.accept() - await anyio.sleep(0.1) # FIXME: see #7 await websocket.send_text("SERVER_MESSAGE") @@ -410,7 +407,6 @@ async def test_receive_text_invalid_type( ): async def websocket_endpoint(websocket: WebSocket): await websocket.accept() - await anyio.sleep(0.1) # FIXME: see #7 await websocket.send_bytes(b"SERVER_MESSAGE") @@ -438,7 +434,6 @@ async def websocket_endpoint(websocket: WebSocket): async def test_receive_bytes(self, server_factory: ServerFactoryFixture): async def websocket_endpoint(websocket: WebSocket): await websocket.accept() - await anyio.sleep(0.1) # FIXME: see #7 await websocket.send_bytes(b"SERVER_MESSAGE") @@ -468,7 +463,6 @@ async def test_receive_bytes_invalid_type( ): async def websocket_endpoint(websocket: WebSocket): await websocket.accept() - await anyio.sleep(0.1) # FIXME: see #7 await websocket.send_text("SERVER_MESSAGE") @@ -493,7 +487,6 @@ async def test_receive_json( ): async def websocket_endpoint(websocket: WebSocket): await websocket.accept() - await anyio.sleep(0.1) # FIXME: see #7 await websocket.send_json({"message": "SERVER_MESSAGE"}, mode=mode) @@ -811,7 +804,6 @@ async def websocket_endpoint(websocket: WebSocket): async def test_receive_close(server_factory: ServerFactoryFixture): async def websocket_endpoint(websocket: WebSocket): await websocket.accept() - await anyio.sleep(0.1) # FIXME: see #7 await websocket.close() with server_factory(websocket_endpoint) as socket: