Skip to content

Commit

Permalink
fix env for test
Browse files Browse the repository at this point in the history
  • Loading branch information
briangann committed Sep 22, 2024
1 parent fd6e924 commit 7547e75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cmd/grafana-kiosk/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func TestMain(t *testing.T) {
oldArgs := os.Args
defer func() { os.Args = oldArgs }()
os.Args = []string{"grafana-kiosk", ""}
os.Setenv("KIOSK_AUTOFIT", "false")
os.Setenv("KIOSK_GRAFANA_AUTOFIT", "false")
cfg := kiosk.Config{}
if err := cleanenv.ReadEnv(&cfg); err != nil {
log.Println("Error reading config from environment", err)
Expand Down

0 comments on commit 7547e75

Please sign in to comment.