From a0630baa43f55d8d6660c1185e7cac5e3b4c2382 Mon Sep 17 00:00:00 2001 From: Haoming Meng Date: Mon, 11 Mar 2024 18:24:05 +0000 Subject: [PATCH] Remove temp dir for config --- web_ui/prometheus_test.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/web_ui/prometheus_test.go b/web_ui/prometheus_test.go index 547a4d572..6e1ec0e3a 100644 --- a/web_ui/prometheus_test.go +++ b/web_ui/prometheus_test.go @@ -61,7 +61,6 @@ func TestPrometheusUnprotected(t *testing.T) { // Create temp dir for the origin key file tDir := t.TempDir() kfile := filepath.Join(tDir, "testKey") - viper.Set("ConfigDir", tDir) //Setup a private key viper.Set("IssuerKey", kfile) config.InitConfig() @@ -107,7 +106,6 @@ func TestPrometheusProtectionCookieAuth(t *testing.T) { // Create temp dir for the origin key file tDir := t.TempDir() kfile := filepath.Join(tDir, "testKey") - viper.Set("ConfigDir", tDir) //Setup a private key viper.Set("IssuerKey", kfile) config.InitConfig() @@ -169,7 +167,6 @@ func TestPrometheusProtectionOriginHeaderScope(t *testing.T) { // Create temp dir for the origin key file tDir := t.TempDir() - viper.Set("ConfigDir", tDir) kfile := filepath.Join(tDir, "testKey") //Setup a private key and a token