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.

Fix Docker agent test timer race

[email protected]f7ff8d7452da
diff --git a/internal/dockeragent/agent_http_test.go b/internal/dockeragent/agent_http_test.go
index a8bfd8099a..d27d627d3b 100644
--- a/internal/dockeragent/agent_http_test.go
+++ b/internal/dockeragent/agent_http_test.go
@@ -527,11 +527,6 @@ func TestHandleCommand(t *testing.T) {
})
t.Run("check updates command", func(t *testing.T) {
- swap(t, &sleepFn, func(time.Duration) {})
- swap(t, &newTimerFn, func(time.Duration) *time.Timer {
- return time.NewTimer(0)
- })
-
collectAttempted := make(chan struct{}, 1)
ackPath := make(chan string, 1)
registryChecker := NewRegistryChecker(zerolog.Nop())