From 68d1fbaadc59613959c6bd02fd21705f8185c3f1 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 22 Feb 2024 22:28:20 -1000 Subject: [PATCH] Fix race in openalpr_cloud tests (#111185) The test would end before setup was finished and the setup would get cancelled --- tests/components/openalpr_cloud/test_image_processing.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/components/openalpr_cloud/test_image_processing.py b/tests/components/openalpr_cloud/test_image_processing.py index 4a256d49112..700152f80aa 100644 --- a/tests/components/openalpr_cloud/test_image_processing.py +++ b/tests/components/openalpr_cloud/test_image_processing.py @@ -106,6 +106,7 @@ async def test_setup_platform_without_api_key(hass: HomeAssistant) -> None: with assert_setup_component(0, ip.DOMAIN): await async_setup_component(hass, ip.DOMAIN, config) + await hass.async_block_till_done() async def test_setup_platform_without_region(hass: HomeAssistant) -> None: @@ -121,6 +122,7 @@ async def test_setup_platform_without_region(hass: HomeAssistant) -> None: with assert_setup_component(0, ip.DOMAIN): await async_setup_component(hass, ip.DOMAIN, config) + await hass.async_block_till_done() async def test_openalpr_process_image(