From 1134863c4ae77bd74c1e716628a0f10985091e78 Mon Sep 17 00:00:00 2001 From: inkychris Date: Sat, 16 Mar 2019 14:28:59 +0000 Subject: [PATCH] Added calls to unset uppercase versions of variables used in empty env tests --- viper_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/viper_test.go b/viper_test.go index 9f266f0..57382b5 100644 --- a/viper_test.go +++ b/viper_test.go @@ -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", "")