mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 06:27:05 +00:00
[e2e]Fix define redundant parameter
When timeout to reach HTTP service, redundant parameter make the error is nil.
This commit is contained in:
parent
755d368c4a
commit
38e8c32a26
@ -716,7 +716,8 @@ func (j *ServiceTestJig) GetHTTPContent(host string, port int, timeout time.Dura
|
||||
var body bytes.Buffer
|
||||
var err 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 {
|
||||
Logf("Error hitting %v:%v%v, retrying: %v", host, port, url, err)
|
||||
return false, nil
|
||||
|
Loading…
Reference in New Issue
Block a user