1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
Yusuke Endoh 2019-06-06 21:18:26 +09:00
parent fcc36d767b
commit 60924636e5

View file

@ -536,9 +536,9 @@ module TestNetHTTP_version_1_1_methods
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
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) {