From 40d070843de3c43cc016e25bc014835dcf39c7c9 Mon Sep 17 00:00:00 2001 From: k0kubun Date: Sun, 21 Oct 2018 02:28:43 +0000 Subject: skip tests broken with OpenSSL 1.1.1 on Travis osx git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65263 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/net/imap/test_imap.rb | 5 +++++ test/rubygems/test_gem_remote_fetcher.rb | 5 +++++ 2 files changed, 10 insertions(+) (limited to 'test') diff --git a/test/net/imap/test_imap.rb b/test/net/imap/test_imap.rb index 936f4e0f42..46a1260412 100644 --- a/test/net/imap/test_imap.rb +++ b/test/net/imap/test_imap.rb @@ -100,6 +100,11 @@ class IMAPTest < Test::Unit::TestCase end def test_imaps_post_connection_check + if ENV.key?('TRAVIS') && /darwin/ =~ RUBY_PLATFORM + # https://travis-ci.org/ruby/ruby/jobs/444232675 + # randomly raises: Errno::EPROTOTYPE "Protocol wrong type for socket" + skip 'This test randomly fails with OpenSSL 1.1.1 on Travis osx build' + end assert_raise(OpenSSL::SSL::SSLError) do imaps_test do |port| # server_addr is different from the hostname in the certificate, diff --git a/test/rubygems/test_gem_remote_fetcher.rb b/test/rubygems/test_gem_remote_fetcher.rb index dfef55c7ca..4d1fe6587c 100644 --- a/test/rubygems/test_gem_remote_fetcher.rb +++ b/test/rubygems/test_gem_remote_fetcher.rb @@ -883,6 +883,11 @@ PeIQQkFng2VVot/WAQbv3ePqWq07g1BBcwIBAg== def test_do_not_allow_invalid_client_cert_auth_connection skip 'openssl is missing' unless defined?(OpenSSL::SSL) + if ENV.key?('TRAVIS') && /darwin/ =~ RUBY_PLATFORM + # https://travis-ci.org/ruby/ruby/jobs/444240249 + # raises: OpenSSL::SSL::SSLError "SSL_read: tlsv1 alert decrypt error" + skip 'This test is failing with OpenSSL 1.1.1 on Travis osx build' + end ssl_server = self.class.start_ssl_server({ :SSLVerifyClient => -- cgit v1.2.3