mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix test failure of 60b02db516
with Windows
This commit is contained in:
parent
a4df7cb338
commit
f8ad51dd9a
Notes:
git
2021-07-29 20:55:26 +09:00
1 changed files with 1 additions and 2 deletions
|
@ -594,8 +594,7 @@ module TestNetHTTP_version_1_1_methods
|
|||
req.body_stream = StringIO.new(data)
|
||||
|
||||
th = Thread.new do
|
||||
err = !windows? ? Net::WriteTimeout : Net::ReadTimeout
|
||||
assert_raise(err) { conn.request(req) }
|
||||
assert_raise(Net::WriteTimeout) { conn.request(req) }
|
||||
end
|
||||
assert th.join(10)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue