summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2021-07-29 20:11:54 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-07-29 20:54:54 +0900
commitf8ad51dd9a8c9fe493f0eb280ac9709ed5607acf (patch)
treed36207351b256393f686aa04900a7df7886ddc13
parenta4df7cb33804add1d894ead66480365ea7f45fa1 (diff)
Fix test failure of 60b02db5161625dd5f7d22d31989dd966837333c with Windows
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4691
-rw-r--r--test/net/http/test_http.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/net/http/test_http.rb b/test/net/http/test_http.rb
index 89a7be199e..c859021956 100644
--- a/test/net/http/test_http.rb
+++ b/test/net/http/test_http.rb
@@ -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)
}