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

https://rubyci.org/logs/rubyci.s3.amazonaws.com/unstable10s/ruby-master/log/20190610T071910Z.log.html.gz
This commit is contained in:
Yusuke Endoh 2019-06-11 06:45:49 +09:00
parent d7e7e99862
commit 6096baea5d

View file

@ -544,7 +544,7 @@ module TestNetHTTP_version_1_1_methods
err = !windows? ? Net::WriteTimeout : Net::ReadTimeout err = !windows? ? Net::WriteTimeout : Net::ReadTimeout
assert_raise(err) { conn.post('/', "a"*50_000_000) } assert_raise(err) { conn.post('/', "a"*50_000_000) }
end end
assert th.join(10) assert th.join(EnvUtil.apply_timeout_scale(10))
} }
ensure ensure
th&.kill th&.kill
@ -568,7 +568,7 @@ module TestNetHTTP_version_1_1_methods
conn.get('/') conn.get('/')
} }
end end
assert th.join(10), bug4246 assert th.join(EnvUtil.apply_timeout_scale(10)), bug4246
} }
ensure ensure
th.kill th.kill