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.

Ensure Docker lifecycle lab removes fixtures

rcourtman50bac2ccf1ae
diff --git a/internal/dockeragent/container_update_integration_test.go b/internal/dockeragent/container_update_integration_test.go
index 65fcfa8d8a..236bfd13b0 100644
--- a/internal/dockeragent/container_update_integration_test.go
+++ b/internal/dockeragent/container_update_integration_test.go
@@ -44,7 +44,7 @@ func TestIntegrationContainerUpdateComposeNetworkLifecycle(t *testing.T) {
if err != nil {
t.Fatal(err)
}
- defer rawClient.Close()
+ t.Cleanup(func() { _ = rawClient.Close() })
if _, err := rawClient.Info(ctx, client.InfoOptions{}); err != nil {
t.Skipf("Docker daemon is unavailable: %v", err)
}