瀏覽代碼

testutil: rename variable that collided with import

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 2 年之前
父節點
當前提交
c395496e06
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      testutil/request/request.go

+ 2 - 2
testutil/request/request.go

@@ -86,11 +86,11 @@ func Do(endpoint string, modifiers ...func(*Options)) (*http.Response, io.ReadCl
 	if err != nil {
 		return nil, nil, err
 	}
-	client, err := newHTTPClient(opts.host)
+	httpClient, err := newHTTPClient(opts.host)
 	if err != nil {
 		return nil, nil, err
 	}
-	resp, err := client.Do(req)
+	resp, err := httpClient.Do(req)
 	var body io.ReadCloser
 	if resp != nil {
 		body = ioutils.NewReadCloserWrapper(resp.Body, func() error {