mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
544daf1f7a
commit
3e01a8d58e
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue