Skip to content

Commit

Permalink
Add empty Environ when loading test config
Browse files Browse the repository at this point in the history
To prevent OS environment vars confusing the tests.
  • Loading branch information
bep committed Jun 19, 2023
1 parent 7241b5f commit 3ab8465
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/testconfig/testconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func GetTestConfigs(fs afero.Fs, cfg config.Provider) *allconfig.Configs {
}
}

configs, err := allconfig.LoadConfig(allconfig.ConfigSourceDescriptor{Fs: fs, Flags: cfg})
configs, err := allconfig.LoadConfig(allconfig.ConfigSourceDescriptor{Fs: fs, Flags: cfg, Environ: []string{"EMPTY_TEST_ENVIRONMENT"}})
if err != nil {
panic(err)
}
Expand Down

0 comments on commit 3ab8465

Please sign in to comment.