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.

Model an existing PBS interval in the skipped-scope regression

pulse-triage[bot]d1ecdcb93916
diff --git a/internal/monitoring/pbs_datastore_discovery_test.go b/internal/monitoring/pbs_datastore_discovery_test.go
index 588bc47943..f9207ea64d 100644
--- a/internal/monitoring/pbs_datastore_discovery_test.go
+++ b/internal/monitoring/pbs_datastore_discovery_test.go
@@ -155,7 +155,9 @@ func TestPBSDatastoreDiscoverySkippedScopeIsNotEmpty(t *testing.T) {
case "global disabled":
f.m.SetBackupPollingEnabled(false)
case "not due":
- f.m.SetBackupPollingInterval(time.Hour)
+ // Model an already-configured cadence. Changing cadence via the
+ // live setter deliberately clears timestamps for a catch-up poll.
+ f.m.config.BackupPollingInterval = time.Hour
case "in flight":
f.m.pbsBackupPollers["pbs-main"] = true
case "cancelled cycle":