fix e2e loadbalancer test

This commit is contained in:
Antonio Ojea 2021-01-25 23:26:54 +01:00
parent 77bedd891d
commit 2402059380

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 {