diff options
author | spf13 <steve.francia@gmail.com> | 2015-05-20 02:21:21 -0400 |
---|---|---|
committer | spf13 <steve.francia@gmail.com> | 2015-05-20 02:21:21 -0400 |
commit | a584ff207b4ee951e4b25cf5cedf6d261ee1bc47 (patch) | |
tree | 4273e35cfd90493ed0d25d53450285b61c527418 /helpers/path_test.go | |
parent | 599d1b9786ddbaa9203aaca2c96ab33b40a583b1 (diff) |
Stop Viper from leaking across many of the tests (now tests pass regardless of order tested)
Diffstat (limited to 'helpers/path_test.go')
-rw-r--r-- | helpers/path_test.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/helpers/path_test.go b/helpers/path_test.go index 364d0c39f..356fb4c91 100644 --- a/helpers/path_test.go +++ b/helpers/path_test.go @@ -431,6 +431,8 @@ func TestExists(t *testing.T) { } func TestAbsPathify(t *testing.T) { + defer viper.Reset() + type test struct { inPath, workingDir, expected string } @@ -450,6 +452,7 @@ func TestAbsPathify(t *testing.T) { } for i, d := range data { + viper.Reset() // todo see comment in AbsPathify viper.Set("WorkingDir", d.workingDir) |