Commit 38e8c32a authored by FengyunPan's avatar FengyunPan

[e2e]Fix define redundant parameter

When timeout to reach HTTP service, redundant parameter make the error is nil.
parent 755d368c
...@@ -716,7 +716,8 @@ func (j *ServiceTestJig) GetHTTPContent(host string, port int, timeout time.Dura ...@@ -716,7 +716,8 @@ func (j *ServiceTestJig) GetHTTPContent(host string, port int, timeout time.Dura
var body bytes.Buffer var body bytes.Buffer
var err error var err error
if pollErr := wait.PollImmediate(Poll, timeout, func() (bool, error) { if pollErr := wait.PollImmediate(Poll, timeout, func() (bool, error) {
result, err := TestReachableHTTPWithContent(host, port, url, "", &body) var result bool
result, err = TestReachableHTTPWithContent(host, port, url, "", &body)
if err != nil { if err != nil {
Logf("Error hitting %v:%v%v, retrying: %v", host, port, url, err) Logf("Error hitting %v:%v%v, retrying: %v", host, port, url, err)
return false, nil return false, nil
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment