Fix asyncio.wait in supervisor.reload (#4333)

* Fix asyncio.wait in supervisor.reload

* Unwrap to prevent throttling across tests
This commit is contained in:
Mike Degatano
2023-06-01 18:38:42 -04:00
committed by GitHub
parent 0200c72db1
commit c896b60410
3 changed files with 19 additions and 4 deletions

View File

@@ -160,3 +160,9 @@ async def test_api_supervisor_logs(api_client: TestClient, docker_logs: MagicMoc
"\x1b[36m22-10-11 14:04:23 DEBUG (MainThread) [supervisor.utils.dbus] D-Bus call - org.freedesktop.DBus.Properties.call_get_all on /io/hass/os\x1b[0m",
"\x1b[36m22-10-11 14:04:23 DEBUG (MainThread) [supervisor.utils.dbus] D-Bus call - org.freedesktop.DBus.Properties.call_get_all on /io/hass/os/AppArmor\x1b[0m",
]
async def test_api_supervisor_reload(api_client: TestClient):
"""Test supervisor reload."""
resp = await api_client.post("/supervisor/reload")
assert resp.status == 200