mirror of
https://github.com/fastapi/fastapi.git
synced 2026-10-08 19:21:32 -04:00
✅ Fix frontend test timeout with Starlette Git (#16408)
This commit is contained in:
1 parent
a3d205bf19
commit
79d42b219b
1 file changed
+2
-5
@@ -578,11 +578,8 @@ async def test_frontend_dependency_restores_existing_dependency_stacks(
|
||||
messages = []
|
||||
|
||||
async def receive():
|
||||
return { # pragma: no cover
|
||||
"type": "http.request",
|
||||
"body": b"",
|
||||
"more_body": False,
|
||||
}
|
||||
# Keep the connection open until the response finishes.
|
||||
await anyio.sleep_forever()
|
||||
|
||||
async def send(message):
|
||||
messages.append(message)
|
||||
|
||||
Reference in new issue
Block a user