mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
fix e2e loadbalancer udp test
This commit is contained in:
parent
0cc343b8c1
commit
a38b7e5ecb
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user