зеркало из https://github.com/github/ruby.git
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:
Родитель
fcc36d767b
Коммит
60924636e5
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче