We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc2836b commit 9820c86Copy full SHA for 9820c86
tests/test_asgi/test_middleware.py
@@ -1,4 +1,5 @@
1
# ruff: noqa: S701
2
+import asyncio
3
from pathlib import Path
4
5
import pytest
@@ -75,6 +76,12 @@ def Stub():
75
76
async with BackendFixture(app) as server:
77
async with DisplayFixture(backend=server) as new_display:
78
await new_display.show(Stub)
79
+
80
+ for _ in range(10):
81
+ await asyncio.sleep(0.25)
82
+ if len(server.log_records) > 0:
83
+ break
84
85
assert (
86
"Attempting to use an unregistered root component"
87
in server.log_records[-1].message
0 commit comments