ruby-changes:53507
From: k0kubun <ko1@a...>
Date: Wed, 14 Nov 2018 16:44:37 +0900 (JST)
Subject: [ruby-changes:53507] k0kubun:r65723 (trunk): test_ftp.rb: loosen timeout for Travis osx
k0kubun 2018-11-14 16:44:30 +0900 (Wed, 14 Nov 2018) New Revision: 65723 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65723 Log: test_ftp.rb: loosen timeout for Travis osx https://travis-ci.org/ruby/ruby/jobs/454798071 Modified files: trunk/test/net/ftp/test_ftp.rb Index: test/net/ftp/test_ftp.rb =================================================================== --- test/net/ftp/test_ftp.rb (revision 65722) +++ test/net/ftp/test_ftp.rb (revision 65723) @@ -377,7 +377,7 @@ class FTPTest < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/net/ftp/test_ftp.rb#L377 begin begin ftp = Net::FTP.new - ftp.read_timeout = 0.2 + ftp.read_timeout = 1.0 ftp.connect(SERVER_ADDR, server.port) ftp.login assert_match(/\AUSER /, commands.shift) @@ -386,7 +386,7 @@ class FTPTest < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/net/ftp/test_ftp.rb#L386 assert_equal(nil, commands.shift) ensure ftp.close - assert_equal(0.2, ftp.read_timeout) + assert_equal(1.0, ftp.read_timeout) end ensure server.close @@ -662,7 +662,7 @@ class FTPTest < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/net/ftp/test_ftp.rb#L662 sock.print("150 Opening BINARY mode data connection for foo (#{binary_data.size} bytes)\r\n") conn = TCPSocket.new(host, port) binary_data.scan(/.{1,1024}/nm) do |s| - sleep(0.1) + sleep(0.2) conn.print(s) end conn.shutdown(Socket::SHUT_WR) @@ -673,7 +673,7 @@ class FTPTest < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/net/ftp/test_ftp.rb#L673 begin begin ftp = Net::FTP.new - ftp.read_timeout = 0.2 + ftp.read_timeout = 1.0 ftp.connect(SERVER_ADDR, server.port) ftp.login assert_match(/\AUSER /, commands.shift) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/