summaryrefslogtreecommitdiff
path: root/test/openssl/test_ssl_session.rb
diff options
context:
space:
mode:
authornahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-23 13:03:02 +0000
committernahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-23 13:03:02 +0000
commit3e01a8d58e4095e77a7ecf6658fc7a825e8ed6c0 (patch)
tree9e34871906fd6d06eba3f38bc917b48ae30e94fd /test/openssl/test_ssl_session.rb
parent544daf1f7abc19fd1577b1aafd7abebef4ee19d7 (diff)
* test/openssl/test_ssl_session.rb: Test parameter bug fixed. 2**31 is not in
a signed long in 32bit long env. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/openssl/test_ssl_session.rb')
-rw-r--r--test/openssl/test_ssl_session.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/openssl/test_ssl_session.rb b/test/openssl/test_ssl_session.rb
index 43b636f8fa..723d73f6a2 100644
--- a/test/openssl/test_ssl_session.rb
+++ b/test/openssl/test_ssl_session.rb
@@ -68,8 +68,8 @@ __EOS__
sess.time = 1.2345
assert_equal(1, sess.time.to_i)
# Can OpenSSL handle t>2038y correctly? Version?
- sess.time = 2**31
- assert_equal(2**31, sess.time.to_i)
+ sess.time = 2**31 - 1
+ assert_equal(2**31 - 1, sess.time.to_i)
end
def test_session_timeout
@@ -81,8 +81,8 @@ __EOS__
assert_equal(1, sess.timeout.to_i)
sess.timeout = 1.2345
assert_equal(1, sess.timeout.to_i)
- sess.timeout = 2**31
- assert_equal(2**31, sess.timeout.to_i)
+ sess.timeout = 2**31 - 1
+ assert_equal(2**31 - 1, sess.timeout.to_i)
end
def test_client_session