1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2025-12-24 12:29:08 +00:00

Bump core shutdown timeout for new pre-stopping core state (#4736)

* Bump core shutdown timeout

* Clarify comment

* Update tests
This commit is contained in:
Erik Montnemery
2023-11-28 21:03:25 +01:00
committed by GitHub
parent e8c4b32a65
commit 95ac53d780
2 changed files with 6 additions and 5 deletions

View File

@@ -218,7 +218,7 @@ async def test_stop(coresys: CoreSys, exists: bool):
coresys.docker.containers.get.return_value.remove.assert_not_called()
if exists:
coresys.docker.containers.get.return_value.stop.assert_called_once_with(
timeout=240
timeout=260
)
else:
coresys.docker.containers.get.return_value.stop.assert_not_called()
@@ -231,7 +231,7 @@ async def test_restart(coresys: CoreSys):
block_till_run.assert_called_once()
coresys.docker.containers.get.return_value.restart.assert_called_once_with(
timeout=240
timeout=260
)
coresys.docker.containers.get.return_value.stop.assert_not_called()