[e2e]Fix define redundant parameter
When timeout to reach HTTP service, redundant parameter make the error is nil.
This commit is contained in:
		| @@ -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 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 FengyunPan
					FengyunPan