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.

Stop alerts manager in TestPollCephClusterChecksPoolStorageThresholds to fix TempDir cleanup flake

rcourtman41dd86703713
diff --git a/internal/monitoring/ceph_test.go b/internal/monitoring/ceph_test.go
index 1898122a91..42b9889205 100644
--- a/internal/monitoring/ceph_test.go
+++ b/internal/monitoring/ceph_test.go
@@ -116,6 +116,7 @@ func TestPollCephCluster(t *testing.T) {
func TestPollCephClusterChecksPoolStorageThresholds(t *testing.T) {
manager := alerts.NewManagerWithDataDir(t.TempDir())
+ defer manager.Stop()
manager.UpdateConfig(alerts.AlertConfig{
Enabled: true,
ActivationState: alerts.ActivationActive,