Merge pull request #71576 from MrHohn/e2e-ingress-resp-new

[e2e ingress] actually assign value to resp
pull/564/head
k8s-ci-robot 2018-11-30 12:09:28 -08:00 committed by GitHub
commit 51453a3131
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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