1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

skip openssl related tests.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2017-05-16 04:23:10 +00:00
parent 1fc689d978
commit a9b001a4eb
2 changed files with 8 additions and 0 deletions

View file

@ -2080,6 +2080,8 @@ EOF
end
def test_abort_tls
return unless defined?(OpenSSL)
commands = []
server = create_ftp_server { |sock|
sock.print("220 (test_ftp).\r\n")
@ -2124,6 +2126,8 @@ EOF
ftp.abort
assert_equal("ABOR\r\n", commands.shift)
assert_equal(nil, commands.shift)
rescue RuntimeError, LoadError
# skip (require openssl)
ensure
ftp.close if ftp
end

View file

@ -135,6 +135,8 @@ module Net
sock.close if sock
servers.each(&:close)
end
rescue LoadError
# skip (require openssl)
end
def test_tls_connect_timeout
@ -151,6 +153,8 @@ module Net
smtp.start do
end
end
rescue LoadError
# skip (require openssl)
ensure
sock.close if sock
servers.each(&:close)