[前][次][番号順一覧][スレッド一覧]

ruby-changes:61885

From: Takashi <ko1@a...>
Date: Mon, 22 Jun 2020 08:16:47 +0900 (JST)
Subject: [ruby-changes:61885] eed4aaa0bf (master): Increase read_timeout for --jit-wait

https://git.ruby-lang.org/ruby.git/commit/?id=eed4aaa0bf

From eed4aaa0bf8aa3109936c4276a71c0cdab4d54d6 Mon Sep 17 00:00:00 2001
From: Takashi Kokubun <takashikkbn@g...>
Date: Sun, 21 Jun 2020 16:16:10 -0700
Subject: Increase read_timeout for --jit-wait

This tries to fix a random failure like
http://ci.rvm.jp/results/trunk-mjit-wait@silicon-docker/3017837

diff --git a/test/net/http/test_httpresponse.rb b/test/net/http/test_httpresponse.rb
index a03bb2e..ca4263e 100644
--- a/test/net/http/test_httpresponse.rb
+++ b/test/net/http/test_httpresponse.rb
@@ -88,6 +88,7 @@ EOS https://github.com/ruby/ruby/blob/trunk/test/net/http/test_httpresponse.rb#L88
         :ok
       end
       io = Net::BufferedIO.new(r)
+      io.read_timeout *= 5 if RubyVM::MJIT.enabled? # for --jit-wait
       res = Net::HTTPResponse.read_new(io)
       nr = 0
       res.reading_body io, true do
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]