Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

test: use relative date in alert lifecycle canonical test to avoid stale-date eviction

rcourtman0bb25722dd68
diff --git a/internal/monitoring/canonical_guardrails_test.go b/internal/monitoring/canonical_guardrails_test.go
index 6e0013ba55..d143fd8bfe 100644
--- a/internal/monitoring/canonical_guardrails_test.go
+++ b/internal/monitoring/canonical_guardrails_test.go
@@ -2068,7 +2068,7 @@ func TestAlertLifecycleCanonicalChangesRemainWritable(t *testing.T) {
}
monitor.SetResourceStore(unifiedresources.NewMonitorAdapter(unifiedresources.NewRegistry(store)))
- startedAt := time.Date(2026, 3, 20, 9, 0, 0, 0, time.UTC)
+ startedAt := time.Now().UTC().Add(-1 * time.Hour)
alert := &alerts.Alert{
ID: "alert-guardrail-1",
Type: "cpu",