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

test_ftp.rb: loosen another timeout requirement

for Travis osx.
https://travis-ci.org/ruby/ruby/jobs/454864155

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65724 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
k0kubun 2018-11-14 08:21:05 +00:00
parent 2a477e0e44
commit ed42b0102d

View file

@ -335,7 +335,7 @@ class FTPTest < Test::Unit::TestCase
sleep(0.1)
sock.print("331 Please specify the password.\r\n")
commands.push(sock.gets)
sleep(0.3)
sleep(2.0) # Net::ReadTimeout
sock.print("230 Login successful.\r\n")
commands.push(sock.gets)
sleep(0.1)
@ -344,7 +344,7 @@ class FTPTest < Test::Unit::TestCase
begin
begin
ftp = Net::FTP.new
ftp.read_timeout = 0.2
ftp.read_timeout = 0.4
ftp.connect(SERVER_ADDR, server.port)
assert_raise(Net::ReadTimeout) do
ftp.login