We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bfac3e9 + a38b7e5 commit 6ced23aCopy full SHA for 6ced23a
test/e2e/network/loadbalancer.go
@@ -422,8 +422,10 @@ var _ = SIGDescribe("LoadBalancers", func() {
422
s.Spec.Ports[0].Port++
423
})
424
framework.ExpectNoError(err)
425
- if int(udpService.Spec.Ports[0].Port) == svcPort {
426
- framework.Failf("UDP Spec.Ports[0].Port (%d) did not change", udpService.Spec.Ports[0].Port)
+ svcPortOld := svcPort
+ svcPort = int(udpService.Spec.Ports[0].Port)
427
+ if svcPort == svcPortOld {
428
+ framework.Failf("UDP Spec.Ports[0].Port (%d) did not change", svcPort)
429
}
430
if int(udpService.Spec.Ports[0].NodePort) != udpNodePort {
431
framework.Failf("UDP Spec.Ports[0].NodePort (%d) changed", udpService.Spec.Ports[0].NodePort)
0 commit comments