Fix test failure of 60b02db5161625dd5f7d22d31989dd966837333c with Windows
This commit is contained in:
parent
a4df7cb338
commit
f8ad51dd9a
Notes:
git
2021-07-29 20:55:26 +09:00
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user