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.

Use detached snapshots for loader non-mutation assertion

pulse-triage[bot]ab1792a42a5f
diff --git a/internal/monitoring/tenant_runtime_config_test.go b/internal/monitoring/tenant_runtime_config_test.go
index 96c893e309..5b1cf69a6c 100644
--- a/internal/monitoring/tenant_runtime_config_test.go
+++ b/internal/monitoring/tenant_runtime_config_test.go
@@ -74,7 +74,7 @@ func TestLoadTenantRuntimeConfigUsesScopedResourcesAndPreservesInstanceSettings(
if os.Getenv("PULSE_TENANT_IMPORT_SENTINEL") != "process" {
t.Error("tenant loader changed the process environment")
}
- if !reflect.DeepEqual(base, before) {
+ if !reflect.DeepEqual(base.DeepCopy(), before) {
t.Error("tenant loader mutated the default config")
}
cfg.EnvOverrides["synthetic-test-lock"] = true