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:
parent
1fc689d978
commit
a9b001a4eb
2 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue