[ruby/net-http] test_https.rb - fix test_session_reuse_but_expire
https://github.com/ruby/net-http/commit/5544243c41
This commit is contained in:
parent
d605fb54cf
commit
9f4b45fbf7
@ -167,18 +167,16 @@ class TestNetHTTPS < Test::Unit::TestCase
|
|||||||
def test_session_reuse_but_expire
|
def test_session_reuse_but_expire
|
||||||
# FIXME: The new_session_cb is known broken for clients in OpenSSL 1.1.0h.
|
# 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 1.1.0h')
|
||||||
omit if OpenSSL::OPENSSL_LIBRARY_VERSION.include?('OpenSSL 3.2.')
|
|
||||||
omit if OpenSSL::OPENSSL_LIBRARY_VERSION.include?('OpenSSL 3.3.')
|
|
||||||
|
|
||||||
http = Net::HTTP.new(HOST, config("port"))
|
http = Net::HTTP.new(HOST, config("port"))
|
||||||
http.use_ssl = true
|
http.use_ssl = true
|
||||||
http.cert_store = TEST_STORE
|
http.cert_store = TEST_STORE
|
||||||
|
|
||||||
http.ssl_timeout = -1
|
http.ssl_timeout = 1
|
||||||
http.start
|
http.start
|
||||||
http.get("/")
|
http.get("/")
|
||||||
http.finish
|
http.finish
|
||||||
|
sleep 1.25
|
||||||
http.start
|
http.start
|
||||||
http.get("/")
|
http.get("/")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user