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.

fix(test): use relative timestamp in incident restart persistence test

[email protected]c9600eace175
diff --git a/internal/alerts/unified_incident_confirmation_test.go b/internal/alerts/unified_incident_confirmation_test.go
index 61323804c0..3708824f13 100644
--- a/internal/alerts/unified_incident_confirmation_test.go
+++ b/internal/alerts/unified_incident_confirmation_test.go
@@ -66,7 +66,8 @@ func TestUnifiedProviderIncidentConfirmationRecoveryAndStableIdentity(t *testing
func TestUnifiedProviderIncidentRecoveryConfirmationSurvivesRestart(t *testing.T) {
dataDir := t.TempDir()
cfg := unifiedEvalBaseConfig()
- observedAt := time.Date(2026, 7, 24, 10, 0, 0, 0, time.UTC)
+ // Restore drops alerts older than 24h, so the incident must start recently.
+ observedAt := time.Now().UTC().Add(-time.Hour).Truncate(time.Second)
resource := confirmedProviderIncidentResource(observedAt)
first := NewManagerWithDataDir(dataDir)