test(docker): the dead-container page test dates its exit from the clock |ago reads (#5310)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user