1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
usa 2012-04-03 10:03:30 +00:00
parent 9102ee7be2
commit 995d212a64
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,10 @@
Tue Apr 3 19:00:52 2012 NAKAMURA Usaku <usa@ruby-lang.org>
* 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.
Tue Apr 3 18:33:38 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* process.c (setreuid, setregid): suppress warnings.

View file

@ -591,6 +591,7 @@ class FTPTest < Test::Unit::TestCase
sock = server.accept
begin
yield(sock)
sleep 0.1
ensure
sock.close
end