From 7cb6cb1fb5882fee6ad1ef9122967f856ba54526 Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Wed, 7 Oct 2026 21:37:07 -0400 Subject: [PATCH] test(docker): the dead-container page test dates its exit from the clock |ago reads (#5310) Co-Authored-By: Claude Opus 5.5 --- tests/plugins/docker/test_overview.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/plugins/docker/test_overview.py b/tests/plugins/docker/test_overview.py index a36b859..09dd195 100644 --- a/tests/plugins/docker/test_overview.py +++ b/tests/plugins/docker/test_overview.py @@ -274,7 +274,8 @@ async def _container_page(app, c, **over): ctx = dict(container=c, host=NS(id="h1", name="nas"), host_id="h1", name=c.name, label=c.name, node_name=None, exit_failed=True, ports=[], uptime=None, usage={"mem_limit": None}, net_rx="1.0 KiB", net_tx="2.0 KiB", blk_read="3.0 MiB", - blk_write="4.0 MiB", died_at=NOW - timedelta(minutes=20), current_range="24h", + blk_write="4.0 MiB", current_range="24h", + died_at=datetime.now(timezone.utc) - timedelta(minutes=20), # |ago reads the clock events=[{"event": "health_change", "detail": "healthy→unhealthy", "at": NOW, "glyph": "◐", "tone": "warn"}]) ctx.update(over)