aboutsummaryrefslogtreecommitdiffstats
path: root/test/openssl/test_ssl_session.rb
diff options
context:
space:
mode:
authoremboss <emboss@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-09-03 22:54:12 +0000
committeremboss <emboss@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-09-03 22:54:12 +0000
commit4bb125f91a1df7d5252b1dd1f59c1ce0238e0192 (patch)
treee1dd5082f2e1c74a2fc13cda5f29c2ba8e4b62ff /test/openssl/test_ssl_session.rb
parentb6c38f675356cf6da84e35c8a9ed57922130e580 (diff)
downloadruby-4bb125f91a1df7d5252b1dd1f59c1ce0238e0192.tar.gz
* test/openssl/test_asn1_rb:
test/openssl/test_ssl_session.rb: test/openssl/test_x509name.rb: test/openssl/test_buffering.rb: test/openssl/test_x509cert.rb: test/openssl/test_ssl.rb: Refactor code that leads to warnings on Ruby CI. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36894 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/openssl/test_ssl_session.rb')
-rw-r--r--test/openssl/test_ssl_session.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/openssl/test_ssl_session.rb b/test/openssl/test_ssl_session.rb
index d04ebe2717..69a3a0d876 100644
--- a/test/openssl/test_ssl_session.rb
+++ b/test/openssl/test_ssl_session.rb
@@ -135,7 +135,7 @@ __EOS__
def test_session_timeout
sess = OpenSSL::SSL::Session.new(DUMMY_SESSION_NO_EXT)
assert_raise(TypeError) do
- sess.timeout = (now = Time.now)
+ sess.timeout = Time.now
end
sess.timeout = 1
assert_equal(1, sess.timeout.to_i)
@@ -337,8 +337,8 @@ __EOS__
}
server_proc = Proc.new { |c, ssl|
- session = ssl.session
- stats = c.session_cache_stats
+ ssl.session
+ c.session_cache_stats
readwrite_loop(c, ssl)
}
start_server(PORT, OpenSSL::SSL::VERIFY_NONE, true, :ctx_proc => ctx_proc, :server_proc => server_proc) do |server, port|