mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test_ftp.rb: extend timeout for --jit-wait testing
to avoid random failures like https://app.wercker.com/ruby/ruby/runs/mjit-test1/5be394b818310600284f2b50?step=5be394f1591ca800079b1329 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
86dca76ef2
commit
3f1524f0d2
1 changed files with 1 additions and 1 deletions
|
@ -2171,7 +2171,7 @@ EOF
|
|||
begin
|
||||
ftp = Net::FTP.new
|
||||
ftp.resume = resume
|
||||
ftp.read_timeout = RubyVM::MJIT.enabled? ? 1 : 0.2 # use large timeout for --jit-wait
|
||||
ftp.read_timeout = RubyVM::MJIT.enabled? ? 5 : 0.2 # use large timeout for --jit-wait
|
||||
ftp.connect(SERVER_ADDR, server.port)
|
||||
ftp.login
|
||||
assert_match(/\AUSER /, commands.shift)
|
||||
|
|
Loading…
Reference in a new issue