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 ingestion proof

rcourtmanb32e8fb34e21
diff --git a/internal/monitoring/truenas_poller_test.go b/internal/monitoring/truenas_poller_test.go
index 031861f2e0..4b7fa10fce 100644
--- a/internal/monitoring/truenas_poller_test.go
+++ b/internal/monitoring/truenas_poller_test.go
@@ -41,8 +41,8 @@ func TestTrueNASPollerPollsConfiguredConnections(t *testing.T) {
t.Cleanup(poller.Stop)
waitForCondition(t, 2*time.Second, func() bool {
- return mock.RequestCount() >= 5
- }, "expected at least one successful TrueNAS poll cycle")
+ return mock.RequestCount() >= 5 && hasTrueNASHostForOrg(poller, "default", "nas-one")
+ }, "expected configured TrueNAS connection to poll and ingest host resources")
poller.Stop()
if !hasTrueNASHostForOrg(poller, "default", "nas-one") {