test(docker): the dead-container page test dates its exit from the clock |ago reads (#5310)
CI / lint (push) Successful in 2s
CI / integration (push) Successful in 53s
CI / unit (push) Successful in 1m23s
CI / publish (push) Successful in 1m19s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-07 21:37:07 -04:00
co-authored by Claude Opus 5.5
parent 29be9e3590
commit 7cb6cb1fb5
+2 -1
View File
@@ -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)