- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for test_raw_stream_cancellation (0.09 seconds)
-
tests/test_stream_cancellation.py
# If we got here within the timeout the generator was cancellable. # cancel_scope.cancelled_caught is True when move_on_after fired. return cancel_scope.cancelled_caught or len(chunks) > 0 async def test_raw_stream_cancellation() -> None: """Raw streaming endpoint should be cancellable within a reasonable time.""" cancelled = await _run_asgi_and_cancel(app, "/stream-raw", timeout=3.0)Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 27 18:56:47 GMT 2026 - 2.7K bytes - Click Count (0)