@@ -13,6 +13,7 @@ class IMAPTest < Net::IMAP::TestCase
1313
1414 if defined? ( OpenSSL ::SSL ::SSLError )
1515 def test_imaps_unknown_ca
16+ omit_if_jruby "SSL tests don't work yet"
1617 assert_raise ( OpenSSL ::SSL ::SSLError ) do
1718 imaps_test do |port |
1819 begin
@@ -27,6 +28,7 @@ def test_imaps_unknown_ca
2728 end
2829
2930 def test_imaps_with_ca_file
31+ omit_if_jruby "SSL tests don't work yet"
3032 # Assert verified *after* the imaps_test and assert_nothing_raised blocks.
3133 # Otherwise, failures can't logout and need to wait for the timeout.
3234 verified , imap = :unknown , nil
@@ -54,6 +56,7 @@ def test_imaps_with_ca_file
5456 end
5557
5658 def test_imaps_verify_none
59+ omit_if_jruby "SSL tests don't work yet"
5760 # Assert verified *after* the imaps_test and assert_nothing_raised blocks.
5861 # Otherwise, failures can't logout and need to wait for the timeout.
5962 verified , imap = :unknown , nil
@@ -81,6 +84,7 @@ def test_imaps_verify_none
8184 end
8285
8386 def test_imaps_post_connection_check
87+ omit_if_jruby "SSL tests don't work yet"
8488 assert_raise ( OpenSSL ::SSL ::SSLError ) do
8589 imaps_test do |port |
8690 # server_addr is different from the hostname in the certificate,
@@ -95,6 +99,7 @@ def test_imaps_post_connection_check
9599
96100 if defined? ( OpenSSL ::SSL )
97101 def test_starttls_unknown_ca
102+ omit_if_jruby "SSL tests don't work yet"
98103 omit "This test is not working with Windows" if RUBY_PLATFORM =~ /mswin|mingw/
99104
100105 imap = nil
@@ -115,6 +120,7 @@ def test_starttls_unknown_ca
115120 end
116121
117122 def test_starttls
123+ omit_if_jruby "SSL tests don't work yet"
118124 initial_verified , initial_ctx , initial_params = :unknown , :unknown , :unknown
119125 imap = nil
120126 starttls_test do |port |
@@ -139,6 +145,7 @@ def test_starttls
139145 end
140146
141147 def test_starttls_stripping
148+ omit_if_jruby "SSL tests don't work yet"
142149 imap = nil
143150 starttls_stripping_test do |port |
144151 imap = Net ::IMAP . new ( "localhost" , :port => port )
@@ -497,6 +504,7 @@ def test_connection_closed_during_idle
497504 end
498505
499506 def test_connection_closed_without_greeting
507+ omit_if_jruby "???"
500508 server = create_tcp_server
501509 port = server . addr [ 1 ]
502510 h = {
0 commit comments