Skip to content

Commit

Permalink
Merge pull request #829 from rhenium/ky/ssl-test-fix-test_ctx_client_…
Browse files Browse the repository at this point in the history
…session_cb_tls13_exception

ssl: fix flaky test case test_ctx_client_session_cb_tls13_exception
  • Loading branch information
rhenium authored Dec 21, 2024
2 parents f4e7c4b + 210ba03 commit a6947fe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/openssl/test_ssl_session.rb
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,11 @@ def test_ctx_client_session_cb_tls13_exception
omit "TLS 1.3 not supported" unless tls13_supported?
omit "LibreSSL does not call session_new_cb in TLS 1.3" if libressl?

start_server do |port|
server_proc = lambda do |ctx, ssl|
readwrite_loop(ctx, ssl)
rescue SystemCallError, OpenSSL::SSL::SSLError
end
start_server(server_proc: server_proc) do |port|
ctx = OpenSSL::SSL::SSLContext.new
ctx.min_version = :TLS1_3
ctx.session_cache_mode = OpenSSL::SSL::SSLContext::SESSION_CACHE_CLIENT
Expand Down

0 comments on commit a6947fe

Please sign in to comment.