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.

Allow the autonomous queue to produce the restart receipt

pulse-triage[bot]28cdde729936
diff --git a/internal/monitoring/monitor_pbs_notification_receipt_test.go b/internal/monitoring/monitor_pbs_notification_receipt_test.go
index 83ff8b0ede..0da7759c8c 100644
--- a/internal/monitoring/monitor_pbs_notification_receipt_test.go
+++ b/internal/monitoring/monitor_pbs_notification_receipt_test.go
@@ -75,7 +75,12 @@ func testPBSMetricObservationGapNotificationReceipts(t *testing.T, restart bool)
select {
case body := <-receipts:
return body
- case <-time.After(5 * time.Second):
+ case <-time.After(12 * time.Second):
+ // This asserts delivery, not latency. The autonomous queue polls
+ // every five seconds and the resolution callback is asynchronous;
+ // a five-second deadline races a legitimate post-restart delivery.
+ // Allow the same two-poll bound as the queue's recovery contracts,
+ // without forcing its worker or skipping the real HTTP receipt.
t.Fatal("no HTTP webhook receipt")
return nil
}