Merge pull request #98387 from aojea/e2eudp

fix e2e loadbalancer test
This commit is contained in:
Kubernetes Prow Robot 2021-01-25 16:51:02 -08:00 committed by GitHub
commit 228d5f2002
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -422,7 +422,7 @@ var _ = SIGDescribe("LoadBalancers", func() {
s.Spec.Ports[0].Port++
})
framework.ExpectNoError(err)
if int(udpService.Spec.Ports[0].Port) != svcPort {
if int(udpService.Spec.Ports[0].Port) == svcPort {
framework.Failf("UDP Spec.Ports[0].Port (%d) did not change", udpService.Spec.Ports[0].Port)
}
if int(udpService.Spec.Ports[0].NodePort) != udpNodePort {