зеркало из 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
|
end
|
||||||
|
|
||||||
def test_abort_tls
|
def test_abort_tls
|
||||||
|
return unless defined?(OpenSSL)
|
||||||
|
|
||||||
commands = []
|
commands = []
|
||||||
server = create_ftp_server { |sock|
|
server = create_ftp_server { |sock|
|
||||||
sock.print("220 (test_ftp).\r\n")
|
sock.print("220 (test_ftp).\r\n")
|
||||||
|
@ -2124,6 +2126,8 @@ EOF
|
||||||
ftp.abort
|
ftp.abort
|
||||||
assert_equal("ABOR\r\n", commands.shift)
|
assert_equal("ABOR\r\n", commands.shift)
|
||||||
assert_equal(nil, commands.shift)
|
assert_equal(nil, commands.shift)
|
||||||
|
rescue RuntimeError, LoadError
|
||||||
|
# skip (require openssl)
|
||||||
ensure
|
ensure
|
||||||
ftp.close if ftp
|
ftp.close if ftp
|
||||||
end
|
end
|
||||||
|
|
|
@ -135,6 +135,8 @@ module Net
|
||||||
sock.close if sock
|
sock.close if sock
|
||||||
servers.each(&:close)
|
servers.each(&:close)
|
||||||
end
|
end
|
||||||
|
rescue LoadError
|
||||||
|
# skip (require openssl)
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_tls_connect_timeout
|
def test_tls_connect_timeout
|
||||||
|
@ -151,6 +153,8 @@ module Net
|
||||||
smtp.start do
|
smtp.start do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
rescue LoadError
|
||||||
|
# skip (require openssl)
|
||||||
ensure
|
ensure
|
||||||
sock.close if sock
|
sock.close if sock
|
||||||
servers.each(&:close)
|
servers.each(&:close)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче