test_ftp.rb: extend read_timeout for --jit-wait
testing. I'm running `make test-all RUN_OPTS='--jit-wait'` and the read_timeout was too slow for it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d07861fb2f
commit
ada4198478
@ -2158,7 +2158,7 @@ EOF
|
|||||||
begin
|
begin
|
||||||
ftp = Net::FTP.new
|
ftp = Net::FTP.new
|
||||||
ftp.resume = resume
|
ftp.resume = resume
|
||||||
ftp.read_timeout = 0.2
|
ftp.read_timeout = RubyVM::MJIT.enabled? ? 1 : 0.2 # use large timeout for --jit-wait
|
||||||
ftp.connect(SERVER_ADDR, server.port)
|
ftp.connect(SERVER_ADDR, server.port)
|
||||||
ftp.login
|
ftp.login
|
||||||
assert_match(/\AUSER /, commands.shift)
|
assert_match(/\AUSER /, commands.shift)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user