ruby-changes:51077
From: k0kubun <ko1@a...>
Date: Sat, 28 Apr 2018 17:24:51 +0900 (JST)
Subject: [ruby-changes:51077] k0kubun:r63284 (trunk): test_ftp.rb: extend read_timeout for --jit-wait
k0kubun 2018-04-28 17:24:44 +0900 (Sat, 28 Apr 2018) New Revision: 63284 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63284 Log: 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. Modified files: trunk/test/net/ftp/test_ftp.rb Index: test/net/ftp/test_ftp.rb =================================================================== --- test/net/ftp/test_ftp.rb (revision 63283) +++ test/net/ftp/test_ftp.rb (revision 63284) @@ -2158,7 +2158,7 @@ EOF https://github.com/ruby/ruby/blob/trunk/test/net/ftp/test_ftp.rb#L2158 begin ftp = Net::FTP.new 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.login assert_match(/\AUSER /, commands.shift) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/