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 v5 single-tenant router test setup

rcourtman6618db779948
diff --git a/internal/api/router_single_tenant_persistence_test.go b/internal/api/router_single_tenant_persistence_test.go
index 23f072cd1c..7429cf5562 100644
--- a/internal/api/router_single_tenant_persistence_test.go
+++ b/internal/api/router_single_tenant_persistence_test.go
@@ -8,7 +8,8 @@ import (
)
func TestNewRouter_V5SingleTenantConfigHandlersUseLegacyPersistence(t *testing.T) {
- prevSingleTenant := setV5SingleTenantModeForTests(true)
+ prevSingleTenant := isV5SingleTenantMode()
+ setV5SingleTenantModeForTests(true)
t.Cleanup(func() { setV5SingleTenantModeForTests(prevSingleTenant) })
cfg := &config.Config{DataPath: t.TempDir()}