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:
parent
2a477e0e44
commit
ed42b0102d
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue