testutil: rename variable that collided with import

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2023-07-12 16:41:10 +02:00
parent d93d3e2d75
commit c395496e06
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

View file

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