Skip to content

Commit a789d56

Browse files
authored
Merge pull request kubernetes#93119 from dcbw/e2e-ingress-misisng-return
test/e2e/ingress: add missing return to fix panics on !GCE
2 parents 1f14cba + e24f9ed commit a789d56

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/e2e/network/ingress.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -623,10 +623,10 @@ var _ = SIGDescribe("Loadbalancing: L7", func() {
623623
}
624624
if jig.Ingress == nil {
625625
ginkgo.By("No ingress created, no cleanup necessary")
626-
} else {
627-
ginkgo.By("Deleting ingress")
628-
jig.TryDeleteIngress()
626+
return
629627
}
628+
ginkgo.By("Deleting ingress")
629+
jig.TryDeleteIngress()
630630

631631
ginkgo.By("Cleaning up cloud resources")
632632
err := gceController.CleanupIngressController()

0 commit comments

Comments
 (0)