Skip to content

Commit

Permalink
[ruby/net-http] test_https.rb - fix test_session_reuse_but_expire
Browse files Browse the repository at this point in the history
  • Loading branch information
MSP-Greg authored and hsbt committed Nov 11, 2024
1 parent e992a8f commit 3d67953
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions test/net/http/test_https.rb
Original file line number Diff line number Diff line change
Expand Up @@ -167,19 +167,16 @@ 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.')
omit if OpenSSL::OPENSSL_LIBRARY_VERSION.include?('OpenSSL 3.3.')
omit "not working on MinGW" if /mingw/ =~ RUBY_PLATFORM

http = Net::HTTP.new(HOST, config("port"))
http.use_ssl = true
http.cert_store = TEST_STORE

http.ssl_timeout = -1
http.ssl_timeout = 1
http.start
http.get("/")
http.finish

sleep 1.25
http.start
http.get("/")

Expand Down

0 comments on commit 3d67953

Please sign in to comment.