summaryrefslogtreecommitdiffstats
path: root/commands/server_test.go
diff options
context:
space:
mode:
authorspf13 <steve.francia@gmail.com>2015-05-20 02:21:21 -0400
committerspf13 <steve.francia@gmail.com>2015-05-20 02:21:21 -0400
commita584ff207b4ee951e4b25cf5cedf6d261ee1bc47 (patch)
tree4273e35cfd90493ed0d25d53450285b61c527418 /commands/server_test.go
parent599d1b9786ddbaa9203aaca2c96ab33b40a583b1 (diff)
Stop Viper from leaking across many of the tests (now tests pass regardless of order tested)
Diffstat (limited to 'commands/server_test.go')
-rw-r--r--commands/server_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/commands/server_test.go b/commands/server_test.go
index ea853e801..7d3c62c13 100644
--- a/commands/server_test.go
+++ b/commands/server_test.go
@@ -7,6 +7,8 @@ import (
)
func TestFixURL(t *testing.T) {
+ defer viper.Reset()
+
type data struct {
TestName string
CLIBaseURL string
@@ -28,6 +30,7 @@ func TestFixURL(t *testing.T) {
}
for i, test := range tests {
+ viper.Reset()
BaseURL = test.CLIBaseURL
viper.Set("BaseURL", test.CfgBaseURL)
serverAppend = test.AppendPort