ruby-changes:35062
From: naruse <ko1@a...>
Date: Tue, 12 Aug 2014 03:47:37 +0900 (JST)
Subject: [ruby-changes:35062] naruse:r47144 (trunk): add timeout
naruse 2014-08-12 03:47:31 +0900 (Tue, 12 Aug 2014) New Revision: 47144 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=47144 Log: add timeout Modified files: trunk/test/openssl/test_ssl_session.rb Index: test/openssl/test_ssl_session.rb =================================================================== --- test/openssl/test_ssl_session.rb (revision 47143) +++ test/openssl/test_ssl_session.rb (revision 47144) @@ -41,6 +41,7 @@ tddwpBAEDjcwMzA5NTYzMTU1MzAwpQMCARM= https://github.com/ruby/ruby/blob/trunk/test/openssl/test_ssl_session.rb#L41 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= https://github.com/ruby/ruby/blob/trunk/test/openssl/test_ssl_session.rb#L69 assert_not_nil(session.to_text) ssl.close end + end end DUMMY_SESSION = <<__EOS__ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/