fix lint warning

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino 2024-08-11 09:26:07 +02:00
parent ec4bf3d76a
commit 321c3f00d2
No known key found for this signature in database
GPG key ID: 935D2952DEC4EECF

View file

@ -9062,8 +9062,10 @@ func TestHTTPFs(t *testing.T) {
}
func TestProxyProtocol(t *testing.T) {
_, err := httpclient.Get(fmt.Sprintf("http://%v", httpProxyAddr))
assert.Error(t, err)
resp, err := httpclient.Get(fmt.Sprintf("http://%v", httpProxyAddr))
if !assert.Error(t, err) {
resp.Body.Close()
}
}
func TestSetProtocol(t *testing.T) {