Skip to content

Commit

Permalink
Merge pull request kubernetes#71576 from MrHohn/e2e-ingress-resp-new
Browse files Browse the repository at this point in the history
[e2e ingress] actually assign value to resp
  • Loading branch information
k8s-ci-robot authored Nov 30, 2018
2 parents 06cc355 + 4069dc7 commit 51453a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/e2e/network/ingress.go
Original file line number Diff line number Diff line change
Expand Up @@ -1083,7 +1083,8 @@ func detectHttpVersionAndSchemeTest(f *framework.Framework, jig *ingress.Ingress
timeoutClient := &http.Client{Timeout: ingress.IngressReqTimeout}
resp := ""
err := wait.PollImmediate(framework.LoadBalancerPollInterval, framework.LoadBalancerPollTimeout, func() (bool, error) {
resp, err := framework.SimpleGET(timeoutClient, fmt.Sprintf("http://%s", address), "")
var err error
resp, err = framework.SimpleGET(timeoutClient, fmt.Sprintf("http://%s", address), "")
if err != nil {
framework.Logf("SimpleGET failed: %v", err)
return false, nil
Expand Down

0 comments on commit 51453a3

Please sign in to comment.