changeset 1868:d570dbcad925

Tests: unbreak tests with IO::Socket:SSL lacking SSL_session_key.
author Sergey Kandaurov <pluknet@nginx.com>
date Tue, 23 May 2023 13:21:27 +0400
parents 231b14e2041a
children 5c50786e5da9
files ssl_certificate.t stream_ssl_certificate.t
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ssl_certificate.t
+++ b/ssl_certificate.t
@@ -177,6 +177,8 @@ like(get('default', 8080, $s), qr/defaul
 TODO: {
 # ticket key name mismatch prevents session resumption
 local $TODO = 'not yet' unless $t->has_version('1.23.2');
+local $TODO = 'no SSL_session_key, old IO::Socket::SSL'
+	if $IO::Socket::SSL::VERSION < 1.965;
 
 like(get('default', 8081, $s), qr/default:r/, 'session id context match');
 
--- a/stream_ssl_certificate.t
+++ b/stream_ssl_certificate.t
@@ -154,6 +154,8 @@ like(get('default', 8080, $s), qr/defaul
 TODO: {
 # ticket key name mismatch prevents session resumption
 local $TODO = 'not yet' unless $t->has_version('1.23.2');
+local $TODO = 'no SSL_session_key, old IO::Socket::SSL'
+	if $IO::Socket::SSL::VERSION < 1.965;
 
 like(get('default', 8081, $s), qr/default:r/, 'session id context match');