mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Merge pull request #9782 from andronat/9578_TestCreateCleanWithPrefix
TestCreateCleanWithPrefix was failing if env variables existed
This commit is contained in:
		@@ -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()
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user