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.

Keep the unread-log budget fixture in the ended-job queue

pulse-triage[bot]7c6acd339fe2
diff --git a/internal/monitoring/vzdump_cached_guest_test.go b/internal/monitoring/vzdump_cached_guest_test.go
index 12e5b25dc1..c90ca17c93 100644
--- a/internal/monitoring/vzdump_cached_guest_test.go
+++ b/internal/monitoring/vzdump_cached_guest_test.go
@@ -170,7 +170,10 @@ func TestVzdumpCachedGuestUnreadLogUsesCurrentParent(t *testing.T) {
upids := map[string]string{job.ID: testJobUPID}
if blocked == "budget" {
for i := 0; i < maxVzdumpJobLogFetchesPerPoll; i++ {
- filler := models.BackupTask{ID: fmt.Sprintf("filler-%d", i)}
+ // Compete within the ended-job queue. Running jobs now have
+ // their own reserved turns, so they cannot fill this fixture's
+ // entire allowance ahead of the ended cached parent.
+ filler := models.BackupTask{ID: fmt.Sprintf("filler-%d", i), EndTime: job.EndTime}
jobs = append(jobs, filler)
upids[filler.ID] = filler.ID
}