aboutsummaryrefslogtreecommitdiffstats
path: root/dashboard/app/app_test.go
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2023-10-11 18:42:44 +0200
committerAleksandr Nogikh <nogikh@google.com>2023-10-12 11:18:22 +0000
commit08f99e71bb600f1e2224c9cd9569c98683825701 (patch)
tree3aca5d8f6b4368a64be91c1c3dda497f8abef15f /dashboard/app/app_test.go
parent18729404a609b8da5977ab3f0e3a65a1a3540a53 (diff)
dashboard: check config's integrity during tests
Marshal the config at the installing and during getConfig() to ensure that it's not accidentally changed during code execution.
Diffstat (limited to 'dashboard/app/app_test.go')
-rw-r--r--dashboard/app/app_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/dashboard/app/app_test.go b/dashboard/app/app_test.go
index 042e2c8da..1ebabe04f 100644
--- a/dashboard/app/app_test.go
+++ b/dashboard/app/app_test.go
@@ -34,6 +34,7 @@ func init() {
isBrokenAuthDomainInTest = true
obsoleteWhatWontBeFixBisected = true
notifyAboutUnsuccessfulBisections = true
+ ensureConfigImmutability = true
initMocks()
installConfig(testConfig)
}