summaryrefslogtreecommitdiff
path: root/test/net
diff options
context:
space:
mode:
authork0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-14 07:44:30 +0000
committerk0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-14 07:44:30 +0000
commit2a477e0e444de6344048101466fb9189b9defddc (patch)
tree0b516ba7b89cc5235fced34208e4cc2bb9261c16 /test/net
parent158562dabb197d6efc53cabe6662177c6ec3f43e (diff)
downloadbundler-2a477e0e444de6344048101466fb9189b9defddc.tar.gz
test_ftp.rb: loosen timeout for Travis osx
https://travis-ci.org/ruby/ruby/jobs/454798071 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/net')
-rw-r--r--test/net/ftp/test_ftp.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/net/ftp/test_ftp.rb b/test/net/ftp/test_ftp.rb
index 0c01c7f797..d1b4123051 100644
--- a/test/net/ftp/test_ftp.rb
+++ b/test/net/ftp/test_ftp.rb
@@ -377,7 +377,7 @@ class FTPTest < Test::Unit::TestCase
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
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
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
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)