ruby-changes:23162
From: naruse <ko1@a...>
Date: Mon, 2 Apr 2012 06:06:26 +0900 (JST)
Subject: [ruby-changes:23162] naruse:r35212 (trunk): Refix of 35206; 0.3 is too small for Ruby's timeout.
naruse 2012-04-02 06:06:13 +0900 (Mon, 02 Apr 2012) New Revision: 35212 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=35212 Log: Refix of 35206; 0.3 is too small for Ruby's timeout. Modified files: trunk/test/net/ftp/test_ftp.rb Index: test/net/ftp/test_ftp.rb =================================================================== --- test/net/ftp/test_ftp.rb (revision 35211) +++ test/net/ftp/test_ftp.rb (revision 35212) @@ -263,8 +263,8 @@ sock.print("150 Here comes the directory listing.\r\n") conn = TCPSocket.new(host, port) list_lines.each_with_index do |l, i| - if i == 0 - sleep(0.3) + if i == 1 + sleep(0.5) else sleep(0.1) end @@ -377,7 +377,7 @@ conn = TCPSocket.new(host, port) binary_data.scan(/.{1,1024}/nm).each_with_index do |s, i| if i == 1 - sleep(0.3) + sleep(0.5) else sleep(0.1) end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/