Fix flaky nest test_remove_stale_media (#183728)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
epenet
2026-09-30 13:04:09 +02:00
committed by GitHub
co-authored by Claude Opus 5.5
parent c748c9eec9
commit cac393104b
+1 -2
View File
@@ -1694,8 +1694,7 @@ async def test_remove_stale_media(
point_in_time = dt_util.utcnow() + datetime.timedelta(days=1)
with freeze_time(point_in_time):
async_fire_time_changed(hass, point_in_time)
await hass.async_block_till_done()
await hass.async_block_till_done()
await hass.async_block_till_done(wait_background_tasks=True)
# Verify that the event media is still present and that the extra files
# are removed. Newer media is not removed.