Keep task references while running (#87970)
* Keep task references while running * Update pilight tests pointing at correct logger call * Fix graphite tests * Fix profiler tests * More graphite test fixes * Remove extra sleep * Fix tests * Shutdown background tasks as part of stage 1 * Remove unnecessary sleep in test * Remove unused method on mock hass * Skip on cancelled too * Remove background tasks * Test trigger variables without actually sleeping * Fix graphite * One more graphite grrrrrrr
This commit is contained in:
parent
e41af8928b
commit
d54f59478f
12 changed files with 97 additions and 210 deletions
|
@ -774,12 +774,10 @@ async def test_warning_logged_on_wrap_up_timeout(hass, caplog):
|
|||
|
||||
def gen_domain_setup(domain):
|
||||
async def async_setup(hass, config):
|
||||
await asyncio.sleep(0.1)
|
||||
|
||||
async def _background_task():
|
||||
await asyncio.sleep(0.2)
|
||||
|
||||
await hass.async_create_task(_background_task())
|
||||
hass.async_create_task(_background_task())
|
||||
return True
|
||||
|
||||
return async_setup
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue