Skip to content

Commit 0f9855d

Browse files
committed
[test] no longer be relevant on older JRubies
1 parent 8cbfd43 commit 0f9855d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/ruby/x509/test_x509store.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def test_add_cert_concurrently
152152
end
153153
end
154154

155-
def test_adding_pem_to_store
155+
def test_adding_pem_to_store_like_rubygems
156156
debug = false
157157
#OpenSSL.debug = true
158158
# mimic what rubygems/request#add_rubygems_trusted_certs does to find the .pem certificates
@@ -171,7 +171,7 @@ def test_adding_pem_to_store
171171
# only verify on self signed certifactes
172172
assert store.verify(cert) if pem !~ /COMODORSA|AddTrustExternalCARoot/
173173
end
174-
end
174+
end if defined?(JRUBY_VERSION) && Gem::Version.create(JRUBY_VERSION) >= Gem::Version.create('9.1.17.0')
175175

176176
def test_verify
177177
@rsa1024 = OpenSSL::PKey::RSA.new SSLTestHelper::TEST_KEY_RSA1024 # OpenSSL::TestUtils::TEST_KEY_RSA1024

0 commit comments

Comments
 (0)