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.

Increase alerts test cleanup sleep to fix flaky test under load

rcourtmand560de15ad05
diff --git a/internal/alerts/alerts_test.go b/internal/alerts/alerts_test.go
index 740cab7edc..8c677d9adf 100644
--- a/internal/alerts/alerts_test.go
+++ b/internal/alerts/alerts_test.go
@@ -62,8 +62,9 @@ func newTestManager(t *testing.T) *Manager {
default:
close(m.cleanupStop)
}
- // Brief pause to let goroutines finish any in-flight operations
- time.Sleep(10 * time.Millisecond)
+ // Brief pause to let goroutines finish any in-flight operations.
+ // Under heavy parallel test load (full suite), 10ms is not enough.
+ time.Sleep(50 * time.Millisecond)
if hadOld {
os.Setenv("PULSE_DATA_DIR", oldVal)