Browse Source

Tweak coverage

pull/15022/head
Sebastián Ramírez 5 months ago
parent
commit
ac362f3877
  1. 2
      tests/test_stream_cancellation.py

2
tests/test_stream_cancellation.py

@ -48,7 +48,7 @@ async def _run_asgi_and_cancel(app: FastAPI, path: str, timeout: float) -> bool:
async def receive(): # type: ignore[no-untyped-def]
# Simulate a client that never disconnects, rely on cancellation
await anyio.sleep(float("inf"))
return {"type": "http.disconnect"}
return {"type": "http.disconnect"} # pragma: no cover
async def send(message: dict) -> None: # type: ignore[type-arg]
if message["type"] == "http.response.body":

Loading…
Cancel
Save