зеркало из https://github.com/github/ruby.git
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:
Родитель
1fc689d978
Коммит
a9b001a4eb
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче