Skip to content

Commit 42f7187

Browse files
authored
Merge pull request #178 from MSP-Greg/00-session-expire
test_https.rb - fix test_session_reuse_but_expire
2 parents c82e543 + 5544243 commit 42f7187

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/net/http/test_https.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,18 +167,16 @@ def test_session_reuse
167167
def test_session_reuse_but_expire
168168
# FIXME: The new_session_cb is known broken for clients in OpenSSL 1.1.0h.
169169
omit if OpenSSL::OPENSSL_LIBRARY_VERSION.include?('OpenSSL 1.1.0h')
170-
omit if OpenSSL::OPENSSL_LIBRARY_VERSION.include?('OpenSSL 3.2.')
171-
omit if OpenSSL::OPENSSL_LIBRARY_VERSION.include?('OpenSSL 3.3.')
172170

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

177-
http.ssl_timeout = -1
175+
http.ssl_timeout = 1
178176
http.start
179177
http.get("/")
180178
http.finish
181-
179+
sleep 1.25
182180
http.start
183181
http.get("/")
184182

0 commit comments

Comments
 (0)