Skip to content

Commit

Permalink
Fix test session reuse but expire (ruby#9824)
Browse files Browse the repository at this point in the history
* Show OpenSSL version in the error message of assert_equal

* OpenSSL 3.2.1 30 Jan 2024 is also broken
  • Loading branch information
nurse committed Feb 3, 2024
1 parent 3fb51b9 commit 4506461
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/net/http/test_https.rb
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def test_session_reuse
def test_session_reuse_but_expire
# FIXME: The new_session_cb is known broken for clients in OpenSSL 1.1.0h.
omit if OpenSSL::OPENSSL_LIBRARY_VERSION.include?('OpenSSL 1.1.0h')
omit if OpenSSL::OPENSSL_LIBRARY_VERSION.include?('OpenSSL 3.2.0')
omit if OpenSSL::OPENSSL_LIBRARY_VERSION.include?('OpenSSL 3.2.')

http = Net::HTTP.new(HOST, config("port"))
http.use_ssl = true
Expand All @@ -182,7 +182,7 @@ def test_session_reuse_but_expire
http.get("/")

socket = http.instance_variable_get(:@socket).io
assert_equal false, socket.session_reused?
assert_equal false, socket.session_reused?, "NOTE: OpenSSL library version is #{OpenSSL::OPENSSL_LIBRARY_VERSION}"

http.finish
end
Expand Down

0 comments on commit 4506461

Please sign in to comment.