Add empty Environ when loading test config

To prevent OS environment vars confusing the tests.
This commit is contained in:
Bjørn Erik Pedersen 2023-06-19 17:49:45 +02:00
parent 7241b5fd51
commit 3ab84651c6
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F

View file

@ -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 { if err != nil {
panic(err) panic(err)
} }