fix e2e loadbalancer udp test
This commit is contained in:
		@@ -422,8 +422,10 @@ var _ = SIGDescribe("LoadBalancers", func() {
 | 
				
			|||||||
			s.Spec.Ports[0].Port++
 | 
								s.Spec.Ports[0].Port++
 | 
				
			||||||
		})
 | 
							})
 | 
				
			||||||
		framework.ExpectNoError(err)
 | 
							framework.ExpectNoError(err)
 | 
				
			||||||
		if int(udpService.Spec.Ports[0].Port) == svcPort {
 | 
							svcPortOld := svcPort
 | 
				
			||||||
			framework.Failf("UDP Spec.Ports[0].Port (%d) did not change", udpService.Spec.Ports[0].Port)
 | 
							svcPort = int(udpService.Spec.Ports[0].Port)
 | 
				
			||||||
 | 
							if svcPort == svcPortOld {
 | 
				
			||||||
 | 
								framework.Failf("UDP Spec.Ports[0].Port (%d) did not change", svcPort)
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		if int(udpService.Spec.Ports[0].NodePort) != udpNodePort {
 | 
							if int(udpService.Spec.Ports[0].NodePort) != udpNodePort {
 | 
				
			||||||
			framework.Failf("UDP Spec.Ports[0].NodePort (%d) changed", udpService.Spec.Ports[0].NodePort)
 | 
								framework.Failf("UDP Spec.Ports[0].NodePort (%d) changed", udpService.Spec.Ports[0].NodePort)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user