Adjust "retry in ..." log messages to avoid confusion (#4783)

As shown in home-assistant/operating-system#3007, error messages printed
to logs when container installation fails can cause some confusion,
because they are sometimes printed to the log on the landing page.
Adjust all wordings of "retry in" to "retrying in" to make it obvious
this happens automatically.
This commit is contained in:
Jan Čermák
2023-12-20 18:34:42 +01:00
committed by GitHub
parent fd3c995c7c
commit ed7edd9fe0
6 changed files with 11 additions and 11 deletions

View File

@@ -65,7 +65,7 @@ async def test_install_landingpage_docker_error(
await coresys.homeassistant.core.install_landingpage()
sleep.assert_awaited_once_with(30)
assert "Fails install landingpage, retry after 30sec" in caplog.text
assert "Failed to install landingpage, retrying after 30sec" in caplog.text
capture_exception.assert_not_called()
@@ -87,7 +87,7 @@ async def test_install_landingpage_other_error(
await coresys.homeassistant.core.install_landingpage()
sleep.assert_awaited_once_with(30)
assert "Fails install landingpage, retry after 30sec" in caplog.text
assert "Failed to install landingpage, retrying after 30sec" in caplog.text
capture_exception.assert_called_once_with(err)
@@ -113,7 +113,7 @@ async def test_install_docker_error(
await coresys.homeassistant.core.install()
sleep.assert_awaited_once_with(30)
assert "Error on Home Assistant installation. Retry in 30sec" in caplog.text
assert "Error on Home Assistant installation. Retrying in 30sec" in caplog.text
capture_exception.assert_not_called()
@@ -137,7 +137,7 @@ async def test_install_other_error(
await coresys.homeassistant.core.install()
sleep.assert_awaited_once_with(30)
assert "Error on Home Assistant installation. Retry in 30sec" in caplog.text
assert "Error on Home Assistant installation. Retrying in 30sec" in caplog.text
capture_exception.assert_called_once_with(err)