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.

Stabilize TrueNAS poller backend gate

rcourtman67fb10fa639a
diff --git a/internal/monitoring/truenas_poller_test.go b/internal/monitoring/truenas_poller_test.go
index e35d202e8c..087f230388 100644
--- a/internal/monitoring/truenas_poller_test.go
+++ b/internal/monitoring/truenas_poller_test.go
@@ -1251,11 +1251,14 @@ func TestTrueNASPollerSkipsDisabledConnections(t *testing.T) {
t.Cleanup(poller.Stop)
waitForCondition(t, 2*time.Second, func() bool {
- return pollerProviderCount(poller) == 1 && enabled.RequestCount() >= 5
+ return pollerProviderCount(poller) == 1 &&
+ enabled.RequestCount() >= 5 &&
+ hasTrueNASHostForOrg(poller, "default", "nas-enabled")
}, "expected only enabled connection provider and resources")
waitForCondition(t, 2*time.Second, func() bool {
- return enabled.RequestCount() >= 10
+ return enabled.RequestCount() >= 10 &&
+ hasTrueNASHostForOrg(poller, "default", "nas-enabled")
}, "expected additional polling cycles for enabled connection")
if disabled.RequestCount() != 0 {