1
0
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:
J. Nick Koston
2020-09-14 01:48:59 -05:00
committed by GitHub
parent c19b5c5ac3
commit 2e1dbe51a4
2 changed files with 5 additions and 0 deletions

View File

@@ -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()