mirror of
https://github.com/home-assistant/core.git
synced 2025-08-07 22:55:10 +02:00
Fix profiler object growth logging test (#69211)
This commit is contained in:
@@ -94,6 +94,7 @@ async def test_object_growth_logging(hass, caplog):
|
|||||||
assert hass.services.has_service(DOMAIN, SERVICE_START_LOG_OBJECTS)
|
assert hass.services.has_service(DOMAIN, SERVICE_START_LOG_OBJECTS)
|
||||||
assert hass.services.has_service(DOMAIN, SERVICE_STOP_LOG_OBJECTS)
|
assert hass.services.has_service(DOMAIN, SERVICE_STOP_LOG_OBJECTS)
|
||||||
|
|
||||||
|
with patch("homeassistant.components.profiler.objgraph.growth"):
|
||||||
await hass.services.async_call(
|
await hass.services.async_call(
|
||||||
DOMAIN, SERVICE_START_LOG_OBJECTS, {CONF_SCAN_INTERVAL: 10}
|
DOMAIN, SERVICE_START_LOG_OBJECTS, {CONF_SCAN_INTERVAL: 10}
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user