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 9820c86 commit 285f2e2Copy full SHA for 285f2e2
tests/test_asgi/test_middleware.py
@@ -1,5 +1,6 @@
1
# ruff: noqa: S701
2
import asyncio
3
+import os
4
from pathlib import Path
5
6
import pytest
@@ -77,11 +78,13 @@ def Stub():
77
78
async with DisplayFixture(backend=server) as new_display:
79
await new_display.show(Stub)
80
81
+ # Wait for the log record to be popualted
82
for _ in range(10):
- await asyncio.sleep(0.25)
83
if len(server.log_records) > 0:
84
break
85
+ await asyncio.sleep(0.25)
86
87
+ # Check that the log record was populated with the "unregistered component" message
88
assert (
89
"Attempting to use an unregistered root component"
90
in server.log_records[-1].message
0 commit comments