summaryrefslogtreecommitdiff
path: root/test/net/ftp
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-04-03 10:03:30 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-04-03 10:03:30 +0000
commit995d212a64ccf25d4a117e5413d03dfdfbb71752 (patch)
treeee30ddae4077b4d11cc76e77a24ebd013fcc201f /test/net/ftp
parent9102ee7be2586b5206a9ad40c1bb5f0624911931 (diff)
* test/net/ftp/test_ftp.rb (FTPTest#create_ftp_server): should wait
a little before closing socket because if the client call Net::FTP#getmultiline the socket is suddenly closed by the server in the getline loop. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/net/ftp')
-rw-r--r--test/net/ftp/test_ftp.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/net/ftp/test_ftp.rb b/test/net/ftp/test_ftp.rb
index a020b7d0f9..c5f598fba6 100644
--- a/test/net/ftp/test_ftp.rb
+++ b/test/net/ftp/test_ftp.rb
@@ -591,6 +591,7 @@ class FTPTest < Test::Unit::TestCase
sock = server.accept
begin
yield(sock)
+ sleep 0.1
ensure
sock.close
end