1
0
Fork 0
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:
Hiroshi SHIBATA 2021-07-29 20:11:54 +09:00
parent a4df7cb338
commit f8ad51dd9a
Notes: git 2021-07-29 20:55:26 +09:00

View file

@ -594,8 +594,7 @@ module TestNetHTTP_version_1_1_methods
req.body_stream = StringIO.new(data) req.body_stream = StringIO.new(data)
th = Thread.new do th = Thread.new do
err = !windows? ? Net::WriteTimeout : Net::ReadTimeout assert_raise(Net::WriteTimeout) { conn.request(req) }
assert_raise(err) { conn.request(req) }
end end
assert th.join(10) assert th.join(10)
} }