Skip to content

Commit

Permalink
[test] fix JRuby SSL tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mikz committed Feb 27, 2018
1 parent 318aeab commit c4956b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/test_ssl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,8 @@ def test_set_default_paths
end

def test_load_cacerts
omit_if(RUBY_ENGINE == 'jruby', 'SSL_CERT_FILE environment does not work on JRuby')

# disables loading default openssl paths
stub_x509_const(:DEFAULT_CERT_FILE, '/invalid') do
assert_raise(OpenSSL::SSL::SSLError) do
Expand Down Expand Up @@ -323,7 +325,7 @@ def test_allow_tlsv1
end

def test_use_higher_TLS
omit('TODO: it does not pass with Java 7 or old openssl ')
# TODO: it does not pass with Java 7 or old openssl
teardown_server
setup_server_with_ssl_version('TLSv1_2')
assert_nothing_raised do
Expand Down

0 comments on commit c4956b8

Please sign in to comment.