1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Cleanup recorder tests (#46836)

This commit is contained in:
J. Nick Koston
2021-02-20 22:52:41 -10:00
committed by GitHub
parent d9ab1482bc
commit e2fd255a96
2 changed files with 25 additions and 10 deletions

View File

@@ -49,7 +49,7 @@ async def test_shutdown_before_startup_finishes(hass):
with patch.object(hass.data[DATA_INSTANCE], "engine"):
hass.bus.async_fire(EVENT_HOMEASSISTANT_STOP)
await hass.async_block_till_done()
hass.stop()
await hass.async_stop()
run_info = await hass.async_add_executor_job(run_information_with_session, session)