summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMSP-Greg <Greg.mpls@gmail.com>2024-06-20 19:33:06 -0500
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2024-11-11 13:43:58 +0900
commitfdb2bee0fe6624a348a120e786f9eb09a98d4a4b (patch)
tree28ac78ecc509a37d735be7054fd24c0a3c2592c1 /test
parentbcc3ad7ff0400308bc63b177ecc39efff9bbf3f4 (diff)
[ruby/net-http] test_https.rb - fix test_session_reuse_but_expire
https://github.com/ruby/net-http/commit/5544243c41
Diffstat (limited to 'test')
-rw-r--r--test/net/http/test_https.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/test/net/http/test_https.rb b/test/net/http/test_https.rb
index e8dd28ccfc..f881b4e1a2 100644
--- a/test/net/http/test_https.rb
+++ b/test/net/http/test_https.rb
@@ -167,19 +167,16 @@ class TestNetHTTPS < Test::Unit::TestCase
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("/")