mirror of
https://github.com/drakkan/sftpgo.git
synced 2024-11-25 00:50:31 +00:00
fix lint warning
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
parent
ec4bf3d76a
commit
321c3f00d2
1 changed files with 4 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue