Detect lingering threads after tests (#37270)
* Detect lingering threads after tests * Make sure cast is setup before checking state * Make sure we ask executors of old hass to shutdown We are not waiting here, just hoping for the best * Make sure all instances of hass and executors is stopped. Co-authored-by: Paulus Schoutsen <balloob@gmail.com> * Also apply hass stopping to scripts * Adjust to changes how we set up executor * Add new CoreState.stopped Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
This commit is contained in:
1 parent
08fa701854
commit
bcd604eec2
7 files changed
+64
-12
No files matched your search
+2
-2
@@ -1119,7 +1119,7 @@ async def test_hass_start_starts_the_timer(loop):
|
||||
|
||||
finally:
|
||||
await hass.async_stop()
|
||||
assert hass.state == ha.CoreState.not_running
|
||||
assert hass.state == ha.CoreState.stopped
|
||||
|
||||
|
||||
async def test_start_taking_too_long(loop, caplog):
|
||||
@@ -1140,7 +1140,7 @@ async def test_start_taking_too_long(loop, caplog):
|
||||
|
||||
finally:
|
||||
await hass.async_stop()
|
||||
assert hass.state == ha.CoreState.not_running
|
||||
assert hass.state == ha.CoreState.stopped
|
||||
|
||||
|
||||
async def test_track_task_functions(loop):
|
||||
|
||||
Reference in new issue
Block a user