summaryrefslogtreecommitdiff
path: root/test/net/ftp
diff options
context:
space:
mode:
Diffstat (limited to 'test/net/ftp')
-rw-r--r--test/net/ftp/test_ftp.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/net/ftp/test_ftp.rb b/test/net/ftp/test_ftp.rb
index a3a08c67b2..db28e8ce35 100644
--- a/test/net/ftp/test_ftp.rb
+++ b/test/net/ftp/test_ftp.rb
@@ -392,7 +392,7 @@ class FTPTest < Test::Unit::TestCase
sleep(0.1)
conn.print(binary_data[0,1024])
sleep(0.5)
- assert_raise(Errno::EPIPE){ conn.print(binary_data[1024, 1024]) }
+ conn.print(binary_data[1024, 1024]) rescue nil # may raise EPIPE or something
conn.close
sock.print("226 Transfer complete.\r\n")
}