@@ -28,6 +28,7 @@ def teardown
2828
2929 if defined? ( OpenSSL ::SSL ::SSLError )
3030 def test_imaps_unknown_ca
31+ omit_if_jruby "SSL tests don't work yet"
3132 assert_raise ( OpenSSL ::SSL ::SSLError ) do
3233 imaps_test do |port |
3334 begin
@@ -42,6 +43,7 @@ def test_imaps_unknown_ca
4243 end
4344
4445 def test_imaps_with_ca_file
46+ omit_if_jruby "SSL tests don't work yet"
4547 # Assert verified *after* the imaps_test and assert_nothing_raised blocks.
4648 # Otherwise, failures can't logout and need to wait for the timeout.
4749 verified , imap = :unknown , nil
@@ -69,6 +71,7 @@ def test_imaps_with_ca_file
6971 end
7072
7173 def test_imaps_verify_none
74+ omit_if_jruby "SSL tests don't work yet"
7275 # Assert verified *after* the imaps_test and assert_nothing_raised blocks.
7376 # Otherwise, failures can't logout and need to wait for the timeout.
7477 verified , imap = :unknown , nil
@@ -96,6 +99,7 @@ def test_imaps_verify_none
9699 end
97100
98101 def test_imaps_post_connection_check
102+ omit_if_jruby "SSL tests don't work yet"
99103 assert_raise ( OpenSSL ::SSL ::SSLError ) do
100104 imaps_test do |port |
101105 # server_addr is different from the hostname in the certificate,
@@ -110,6 +114,7 @@ def test_imaps_post_connection_check
110114
111115 if defined? ( OpenSSL ::SSL )
112116 def test_starttls_unknown_ca
117+ omit_if_jruby "SSL tests don't work yet"
113118 omit "This test is not working with Windows" if RUBY_PLATFORM =~ /mswin|mingw/
114119
115120 imap = nil
@@ -130,6 +135,7 @@ def test_starttls_unknown_ca
130135 end
131136
132137 def test_starttls
138+ omit_if_jruby "SSL tests don't work yet"
133139 initial_verified , initial_ctx , initial_params = :unknown , :unknown , :unknown
134140 imap = nil
135141 starttls_test do |port |
@@ -154,6 +160,7 @@ def test_starttls
154160 end
155161
156162 def test_starttls_stripping
163+ omit_if_jruby "SSL tests don't work yet"
157164 imap = nil
158165 starttls_stripping_test do |port |
159166 imap = Net ::IMAP . new ( "localhost" , :port => port )
@@ -512,6 +519,7 @@ def test_connection_closed_during_idle
512519 end
513520
514521 def test_connection_closed_without_greeting
522+ omit_if_jruby "???"
515523 server = create_tcp_server
516524 port = server . addr [ 1 ]
517525 h = {
0 commit comments