Skip to content

Commit bea3b8a

Browse files
committed
Fix test failure of 60b02db5161625dd5f7d22d31989dd966837333c with Windows
1 parent a0fab1a commit bea3b8a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/net/http/test_http.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -594,8 +594,7 @@ def test_timeout_during_non_chunked_streamed_HTTP_session_write
594594
req.body_stream = StringIO.new(data)
595595

596596
th = Thread.new do
597-
err = !windows? ? Net::WriteTimeout : Net::ReadTimeout
598-
assert_raise(err) { conn.request(req) }
597+
assert_raise(Net::WriteTimeout) { conn.request(req) }
599598
end
600599
assert th.join(10)
601600
}

0 commit comments

Comments
 (0)