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.

Count read recovery separately from initializer installation

pulse-triage[bot]a99212adb47d
diff --git a/internal/api/ai_history_readiness_test.go b/internal/api/ai_history_readiness_test.go
index 37dce43cf4..2f6cc35370 100644
--- a/internal/api/ai_history_readiness_test.go
+++ b/internal/api/ai_history_readiness_test.go
@@ -403,6 +403,9 @@ func TestInvestigationReadInitializersRunOutsideStoreLock(t *testing.T) {
}
f.handler.investigationMu.RUnlock()
})
+ // Installing an initializer also visits the three existing services.
+ // Measure the subsequent read separately from those installation calls.
+ calls.Store(0)
rec := f.read("tenant-a", "")
if rec.Code != http.StatusOK || calls.Load() != 1 {
t.Fatalf("read retry did not initialize once: %d %s", rec.Code, rec.Body.String())