mirror of
https://github.com/drakkan/sftpgo.git
synced 2024-11-22 07:30:25 +00:00
fix test cases
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
parent
deb46db45a
commit
db4558083e
1 changed files with 3 additions and 3 deletions
|
@ -1197,9 +1197,9 @@ func TestProxyProtocol(t *testing.T) {
|
||||||
assert.NoError(t, checkBasicSFTP(client))
|
assert.NoError(t, checkBasicSFTP(client))
|
||||||
}
|
}
|
||||||
conn, client, err = getSftpClientWithAddr(user, usePubKey, "127.0.0.1:2224")
|
conn, client, err = getSftpClientWithAddr(user, usePubKey, "127.0.0.1:2224")
|
||||||
if !assert.Error(t, err) {
|
if assert.NoError(t, err) {
|
||||||
client.Close()
|
defer client.Close()
|
||||||
conn.Close()
|
defer conn.Close()
|
||||||
}
|
}
|
||||||
_, err = httpdtest.RemoveUser(user, http.StatusOK)
|
_, err = httpdtest.RemoveUser(user, http.StatusOK)
|
||||||
assert.NoError(t, err)
|
assert.NoError(t, err)
|
||||||
|
|
Loading…
Reference in a new issue