Skip to content

Commit

Permalink
Remove temp dir for config
Browse files Browse the repository at this point in the history
  • Loading branch information
haoming29 committed Mar 11, 2024
1 parent 73ce386 commit a0630ba
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions web_ui/prometheus_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a0630ba

Please sign in to comment.