@@ -28,6 +28,7 @@ def teardown
28
28
29
29
if defined? ( OpenSSL ::SSL ::SSLError )
30
30
def test_imaps_unknown_ca
31
+ omit_if_jruby "SSL tests don't work yet"
31
32
assert_raise ( OpenSSL ::SSL ::SSLError ) do
32
33
imaps_test do |port |
33
34
begin
@@ -42,6 +43,7 @@ def test_imaps_unknown_ca
42
43
end
43
44
44
45
def test_imaps_with_ca_file
46
+ omit_if_jruby "SSL tests don't work yet"
45
47
# Assert verified *after* the imaps_test and assert_nothing_raised blocks.
46
48
# Otherwise, failures can't logout and need to wait for the timeout.
47
49
verified , imap = :unknown , nil
@@ -69,6 +71,7 @@ def test_imaps_with_ca_file
69
71
end
70
72
71
73
def test_imaps_verify_none
74
+ omit_if_jruby "SSL tests don't work yet"
72
75
# Assert verified *after* the imaps_test and assert_nothing_raised blocks.
73
76
# Otherwise, failures can't logout and need to wait for the timeout.
74
77
verified , imap = :unknown , nil
@@ -96,6 +99,7 @@ def test_imaps_verify_none
96
99
end
97
100
98
101
def test_imaps_post_connection_check
102
+ omit_if_jruby "SSL tests don't work yet"
99
103
assert_raise ( OpenSSL ::SSL ::SSLError ) do
100
104
imaps_test do |port |
101
105
# server_addr is different from the hostname in the certificate,
@@ -110,6 +114,7 @@ def test_imaps_post_connection_check
110
114
111
115
if defined? ( OpenSSL ::SSL )
112
116
def test_starttls_unknown_ca
117
+ omit_if_jruby "SSL tests don't work yet"
113
118
omit "This test is not working with Windows" if RUBY_PLATFORM =~ /mswin|mingw/
114
119
115
120
imap = nil
@@ -130,6 +135,7 @@ def test_starttls_unknown_ca
130
135
end
131
136
132
137
def test_starttls
138
+ omit_if_jruby "SSL tests don't work yet"
133
139
initial_verified , initial_ctx , initial_params = :unknown , :unknown , :unknown
134
140
imap = nil
135
141
starttls_test do |port |
@@ -154,6 +160,7 @@ def test_starttls
154
160
end
155
161
156
162
def test_starttls_stripping
163
+ omit_if_jruby "SSL tests don't work yet"
157
164
imap = nil
158
165
starttls_stripping_test do |port |
159
166
imap = Net ::IMAP . new ( "localhost" , :port => port )
@@ -512,6 +519,7 @@ def test_connection_closed_during_idle
512
519
end
513
520
514
521
def test_connection_closed_without_greeting
522
+ omit_if_jruby "???"
515
523
server = create_tcp_server
516
524
port = server . addr [ 1 ]
517
525
h = {
0 commit comments