Fix test_dump_log_object timeouts in the CI (#132234)

pull/130769/head^2^2
J. Nick Koston 2024-12-04 12:30:48 -06:00 committed by GitHub
parent bd40e1e7df
commit 719cbd3070
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 3 deletions

View File

@ -211,9 +211,10 @@ async def test_dump_log_object(
assert hass.services.has_service(DOMAIN, SERVICE_DUMP_LOG_OBJECTS)
await hass.services.async_call(
DOMAIN, SERVICE_DUMP_LOG_OBJECTS, {CONF_TYPE: "DumpLogDummy"}, blocking=True
)
with patch("objgraph.by_type", return_value=[obj1, obj2]):
await hass.services.async_call(
DOMAIN, SERVICE_DUMP_LOG_OBJECTS, {CONF_TYPE: "DumpLogDummy"}, blocking=True
)
assert "<DumpLogDummy success>" in caplog.text
assert "Failed to serialize" in caplog.text