Fix tests

Accept "502 REIN not implemented" as valid result for Logout() since there is no support in vsftpd.
This commit is contained in:
Julian Kornberger 2015-08-19 00:06:33 +02:00
parent c741076986
commit 7b93efd90d

View File

@ -109,7 +109,8 @@ func TestConn(t *testing.T) {
} }
err = c.Logout() err = c.Logout()
if err != nil { // REIN is not supported by vsftpd
if err != nil && err.Error() != "502 REIN not implemented." {
t.Error(err) t.Error(err)
} }