mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 04:50:05 +00:00
Make system_log test reliable (#40049)
This commit is contained in:
@@ -31,6 +31,8 @@ async def _async_block_until_queue_empty(hass, sq):
|
||||
await hass.async_block_till_done()
|
||||
while not sq.empty():
|
||||
await asyncio.sleep(0.01)
|
||||
hass.data[system_log.DOMAIN].acquire()
|
||||
hass.data[system_log.DOMAIN].release()
|
||||
await hass.async_block_till_done()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user