mirror of
https://github.com/spf13/viper
synced 2025-05-06 20:27:17 +00:00
Added calls to unset uppercase versions of variables used in empty env tests
This commit is contained in:
parent
d874efd794
commit
1134863c4a
1 changed files with 4 additions and 0 deletions
|
@ -401,7 +401,9 @@ func TestEmptyEnv(t *testing.T) {
|
|||
BindEnv("name") // Bound, but not set environment variable
|
||||
|
||||
os.Unsetenv("type")
|
||||
os.Unsetenv("TYPE")
|
||||
os.Unsetenv("name")
|
||||
os.Unsetenv("NAME")
|
||||
|
||||
os.Setenv("TYPE", "")
|
||||
|
||||
|
@ -418,7 +420,9 @@ func TestEmptyEnv_Allowed(t *testing.T) {
|
|||
BindEnv("name") // Bound, but not set environment variable
|
||||
|
||||
os.Unsetenv("type")
|
||||
os.Unsetenv("TYPE")
|
||||
os.Unsetenv("name")
|
||||
os.Unsetenv("NAME")
|
||||
|
||||
os.Setenv("TYPE", "")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue