Merge pull request #9782 from andronat/9578_TestCreateCleanWithPrefix

TestCreateCleanWithPrefix was failing if env variables existed
pull/6/head
Rohit Jnagal 2015-07-10 10:04:20 -07:00
commit ebc11e11ad
1 changed files with 4 additions and 1 deletions

View File

@ -177,9 +177,12 @@ func TestCreateCleanWithPrefix(t *testing.T) {
{"anything.com:8080", "anything.com:8080", ""},
{"anything.com", "anything.com", ""},
{"anything", "anything", ""},
{"", "http://localhost:8080", ""},
}
// WARNING: EnvVarCluster.Server is set during package loading time and can not be overriden by os.Setenv inside this test
EnvVarCluster.Server = ""
tt = append(tt, struct{ server, host, prefix string }{"", "http://localhost:8080", ""})
for _, tc := range tt {
config := createValidTestConfig()