mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
add timeout
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
90baa972ea
commit
97a4ecb0a3
1 changed files with 2 additions and 0 deletions
|
@ -41,6 +41,7 @@ tddwpBAEDjcwMzA5NTYzMTU1MzAwpQMCARM=
|
|||
end
|
||||
|
||||
def test_session
|
||||
timeout(5) do
|
||||
start_server(PORT, OpenSSL::SSL::VERIFY_NONE, true) do |server, port|
|
||||
sock = TCPSocket.new("127.0.0.1", port)
|
||||
ctx = OpenSSL::SSL::SSLContext.new("TLSv1")
|
||||
|
@ -68,6 +69,7 @@ tddwpBAEDjcwMzA5NTYzMTU1MzAwpQMCARM=
|
|||
assert_not_nil(session.to_text)
|
||||
ssl.close
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
DUMMY_SESSION = <<__EOS__
|
||||
|
|
Loading…
Add table
Reference in a new issue