Merge branch 'release-1.9.0' into LE-846

This commit is contained in:
olayinkaadelakun
2026-04-13 18:49:15 -04:00
committed by GitHub

View File

@ -200,8 +200,12 @@ async def test_component_logging():
# Log a message
await asyncio.to_thread(component.log, "Test log message")
# Get the event from the queue
event_id, event_data, _ = queue.get_nowait()
# Get the event from the queue with timeout to avoid race conditions
try:
event_id, event_data, _ = await asyncio.wait_for(queue.get(), timeout=5.0)
except asyncio.TimeoutError:
pytest.fail("Timeout waiting for log event in queue")
event = event_data.decode("utf-8")
assert "Test log message" in event