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.

Wait for completed license status synchronization

pulse-triage[bot]6aab9c532b2d
diff --git a/pkg/licensing/installation_status_poll_test.go b/pkg/licensing/installation_status_poll_test.go
index 40173e9025..0d5ebe1ac6 100644
--- a/pkg/licensing/installation_status_poll_test.go
+++ b/pkg/licensing/installation_status_poll_test.go
@@ -68,7 +68,10 @@ func TestInstallationStatusPollStartsImmediatelyAndIsIdempotent(t *testing.T) {
svc.mu.Unlock()
svc.StartInstallationStatusPoll(context.Background())
svc.StartInstallationStatusPoll(context.Background())
- waitForCondition(t, time.Second, func() bool { return calls.Load() == 1 }, "immediate status request did not run")
+ waitForCondition(t, time.Second, func() bool {
+ status := svc.Status().Synchronization
+ return calls.Load() == 1 && status != nil && status.Running && status.Healthy && status.LastAttemptAt != nil && status.LastSuccessAt != nil && status.ConsecutiveFailures == 0
+ }, "immediate status request did not complete successfully")
svc.StopInstallationStatusPoll()
svc.StopInstallationStatusPoll()
if calls.Load() != 1 {