Make system_log test reliable (#40049)

This commit is contained in:
J. Nick Koston authored and GitHub committed 2020-09-14 08:48:59 +02:00
1 parent c19b5c5ac3
commit 2e1dbe51a4
2 files changed
+5

No files matched your search

+2
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()