Attempt to fix flaky bootstrap test (#142536)

This commit is contained in:
Erik Montnemery 2025-04-09 13:37:21 +02:00 committed by GitHub
parent 3ca1f07cc4
commit e7c2e86c93
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -703,8 +703,8 @@ async def test_setup_hass_takes_longer_than_log_slow_startup(
return True return True
with ( with (
patch.object(bootstrap, "LOG_SLOW_STARTUP_INTERVAL", 0.1), patch.object(bootstrap, "LOG_SLOW_STARTUP_INTERVAL", 0.005),
patch.object(bootstrap, "SLOW_STARTUP_CHECK_INTERVAL", 0.05), patch.object(bootstrap, "SLOW_STARTUP_CHECK_INTERVAL", 0.005),
patch( patch(
"homeassistant.components.frontend.async_setup", "homeassistant.components.frontend.async_setup",
side_effect=_async_setup_that_blocks_startup, side_effect=_async_setup_that_blocks_startup,