Added calls to unset uppercase versions of variables used in empty env tests

This commit is contained in:
inkychris 2019-03-16 14:28:59 +00:00
parent d874efd794
commit 1134863c4a

View file

@ -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", "")