mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-10 04:27:54 +00:00
Merge pull request #9782 from andronat/9578_TestCreateCleanWithPrefix
TestCreateCleanWithPrefix was failing if env variables existed
This commit is contained in:
commit
ebc11e11ad
@ -177,9 +177,12 @@ func TestCreateCleanWithPrefix(t *testing.T) {
|
|||||||
{"anything.com:8080", "anything.com:8080", ""},
|
{"anything.com:8080", "anything.com:8080", ""},
|
||||||
{"anything.com", "anything.com", ""},
|
{"anything.com", "anything.com", ""},
|
||||||
{"anything", "anything", ""},
|
{"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 {
|
for _, tc := range tt {
|
||||||
config := createValidTestConfig()
|
config := createValidTestConfig()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user