mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 14:50:55 +03:00
fix lint warning
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -9062,8 +9062,10 @@ func TestHTTPFs(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestProxyProtocol(t *testing.T) {
|
func TestProxyProtocol(t *testing.T) {
|
||||||
_, err := httpclient.Get(fmt.Sprintf("http://%v", httpProxyAddr))
|
resp, err := httpclient.Get(fmt.Sprintf("http://%v", httpProxyAddr))
|
||||||
assert.Error(t, err)
|
if !assert.Error(t, err) {
|
||||||
|
resp.Body.Close()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestSetProtocol(t *testing.T) {
|
func TestSetProtocol(t *testing.T) {
|
||||||
|
|||||||
Reference in New Issue
Block a user