Fix tests
Accept "502 REIN not implemented" as valid result for Logout() since there is no support in vsftpd.
This commit is contained in:
parent
c741076986
commit
7b93efd90d
@ -109,7 +109,8 @@ func TestConn(t *testing.T) {
|
||||
}
|
||||
|
||||
err = c.Logout()
|
||||
if err != nil {
|
||||
// REIN is not supported by vsftpd
|
||||
if err != nil && err.Error() != "502 REIN not implemented." {
|
||||
t.Error(err)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user