mirror of https://github.com/k3s-io/k3s
Merge pull request #9782 from andronat/9578_TestCreateCleanWithPrefix
TestCreateCleanWithPrefix was failing if env variables existedpull/6/head
commit
ebc11e11ad
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue