Skip to content

Commit 529894c

Browse files
hsbtdeivid-rodriguez
authored andcommitted
Merge pull request #7670 from nobu/rescue-vendored-net-http
Should rescue vendored net-http exception (cherry picked from commit 4aa0592)
1 parent b84dffa commit 529894c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/rubygems/test_bundled_ca.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def assert_https(host)
3333
http.verify_mode = OpenSSL::SSL::VERIFY_PEER
3434
http.cert_store = bundled_certificate_store
3535
http.get("/")
36-
rescue Errno::ENOENT, Errno::ETIMEDOUT, SocketError, Net::OpenTimeout
36+
rescue Errno::ENOENT, Errno::ETIMEDOUT, SocketError, Gem::Net::OpenTimeout
3737
pend "#{host} seems offline, I can't tell whether ssl would work."
3838
rescue OpenSSL::SSL::SSLError => e
3939
# Only fail for certificate verification errors

0 commit comments

Comments
 (0)