packages/python/python-httpx/uvicorn-test-server-use-h11.diff
2024-02-20 01:26:25 +01:00

14 lines
486 B
Diff

diff --git a/tests/conftest.py b/tests/conftest.py
index 970c353..1ea3aa9 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -304,7 +304,7 @@ def serve_in_thread(server: Server):
@pytest.fixture(scope="session")
def server() -> typing.Iterator[TestServer]:
- config = Config(app=app, lifespan="off", loop="asyncio")
+ config = Config(app=app, lifespan="off", loop="asyncio", http="h11")
server = TestServer(config=config)
yield from serve_in_thread(server)