Fixed test fails against OpenSSL 1.1.1.

* https://rubyci.org/logs/rubyci.s3.amazonaws.com/ubuntu/ruby-trunk/log/20181203T093003Z.fail.html.gz
  * https://rubyci.org/logs/rubyci.s3.amazonaws.com/arch/ruby-trunk/log/20181203T090002Z.fail.html.gz

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
hsbt 2018-12-03 12:01:26 +00:00
Родитель 33eebfd301
Коммит edbac1b986
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -274,7 +274,7 @@ class Gem::RemoteFetcher
raise raise
rescue Timeout::Error rescue Timeout::Error
raise UnknownHostError.new('timed out', uri.to_s) raise UnknownHostError.new('timed out', uri.to_s)
rescue IOError, SocketError, SystemCallError => e rescue IOError, SocketError, SystemCallError, OpenSSL::SSL::SSLError => e
if e.message =~ /getaddrinfo/ if e.message =~ /getaddrinfo/
raise UnknownHostError.new('no such name', uri.to_s) raise UnknownHostError.new('no such name', uri.to_s)
else else