From b477d087b3243463d4afb25c2862170d7a33eabc Mon Sep 17 00:00:00 2001 From: Kiril Zvezdarov Date: Mon, 6 Apr 2015 17:31:13 -0400 Subject: [PATCH] Fixed missing test preconditions --- viper_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/viper_test.go b/viper_test.go index cfc9d94..b0e50fa 100644 --- a/viper_test.go +++ b/viper_test.go @@ -512,6 +512,7 @@ func TestMarshal(t *testing.T) { } func TestBindPFlags(t *testing.T) { + Reset() flagSet := pflag.NewFlagSet("test", pflag.ContinueOnError) var testValues = map[string]*string{ @@ -568,6 +569,7 @@ func TestBindPFlag(t *testing.T) { } func TestBoundCaseSensitivity(t *testing.T) { + initConfigs() assert.Equal(t, "brown", Get("eyes"))