Skip to content

Commit abfda71

Browse files
templecloudowainlewis
authored andcommitted
Added a missing case for optional NodePort tests. (#244)
1 parent b36103d commit abfda71

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/e2e/load_balancer.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,10 @@ var _ = Describe("Service [Slow]", func() {
8383
tcpIngressIP := framework.GetIngressPoint(&tcpService.Status.LoadBalancer.Ingress[0])
8484
framework.Logf("TCP load balancer: %s", tcpIngressIP)
8585

86-
// trjl - hide this?
87-
By("hitting the TCP service's NodePort")
88-
jig.TestReachableHTTP(nodeIP, tcpNodePort, framework.KubeProxyLagTimeout)
86+
if f.NodePortTest {
87+
By("hitting the TCP service's NodePort")
88+
jig.TestReachableHTTP(nodeIP, tcpNodePort, framework.KubeProxyLagTimeout)
89+
}
8990

9091
By("hitting the TCP service's LoadBalancer")
9192
jig.TestReachableHTTP(tcpIngressIP, svcPort, loadBalancerLagTimeout)

0 commit comments

Comments
 (0)