ruby-changes:56032
From: Yusuke <ko1@a...>
Date: Thu, 6 Jun 2019 21:51:00 +0900 (JST)
Subject: [ruby-changes:56032] Yusuke Endoh: 60924636e5 (trunk): test/net/http/test_http.rb: extend the timeout for Solaris CI
https://git.ruby-lang.org/ruby.git/commit/?id=60924636e5 From 60924636e5184c967df129e523ba9374ccc57144 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Thu, 6 Jun 2019 21:18:26 +0900 Subject: test/net/http/test_http.rb: extend the timeout for Solaris CI https://rubyci.org/logs/rubyci.s3.amazonaws.com/unstable10s/ruby-master/log/20190605T231909Z.fail.html.gz diff --git a/test/net/http/test_http.rb b/test/net/http/test_http.rb index 389b6fa..2b3104f 100644 --- a/test/net/http/test_http.rb +++ b/test/net/http/test_http.rb @@ -536,9 +536,9 @@ module TestNetHTTP_version_1_1_methods https://github.com/ruby/ruby/blob/trunk/test/net/http/test_http.rb#L536 port = server.addr[1] conn = Net::HTTP.new('localhost', port) - conn.write_timeout = 0.01 - conn.read_timeout = 0.01 if windows? - conn.open_timeout = 0.1 + conn.write_timeout = EnvUtil.apply_timeout_scale(0.01) + conn.read_timeout = EnvUtil.apply_timeout_scale(0.01) if windows? + conn.open_timeout = EnvUtil.apply_timeout_scale(0.1) th = Thread.new do err = !windows? ? Net::WriteTimeout : Net::ReadTimeout @@ -560,8 +560,8 @@ module TestNetHTTP_version_1_1_methods https://github.com/ruby/ruby/blob/trunk/test/net/http/test_http.rb#L560 port = server.addr[1] conn = Net::HTTP.new('localhost', port) - conn.read_timeout = 0.01 - conn.open_timeout = 0.1 + conn.read_timeout = EnvUtil.apply_timeout_scale(0.01) + conn.open_timeout = EnvUtil.apply_timeout_scale(0.1) th = Thread.new do assert_raise(Net::ReadTimeout) { -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/