From 7b93efd90dd45f67f13655061a9897d2d6a10cac Mon Sep 17 00:00:00 2001 From: Julian Kornberger Date: Wed, 19 Aug 2015 00:06:33 +0200 Subject: [PATCH] Fix tests Accept "502 REIN not implemented" as valid result for Logout() since there is no support in vsftpd. --- client_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client_test.go b/client_test.go index 57095b3..2e2af45 100644 --- a/client_test.go +++ b/client_test.go @@ -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) }