changeset 1307:23026106e439

Tests: unbreak stream_ssl_preread_alpn.t on OpenSSL < 1.0.2h. Do not check return value for empty ALPN test case, since older OpenSSL versions tolerate empty strings. The test is still useful for coverage.
author Sergey Kandaurov <pluknet@nginx.com>
date Thu, 22 Mar 2018 14:18:33 +0300
parents 5e9695bd370a
children 58fdd9515f81
files stream_ssl_preread_alpn.t
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/stream_ssl_preread_alpn.t
+++ b/stream_ssl_preread_alpn.t
@@ -100,7 +100,7 @@ foreach my $name ('localhost') {
 		or die "Can't create certificate for $name: $!\n";
 }
 
-$t->try_run('no ssl_preread_alpn_protocols')->plan(6);
+$t->try_run('no ssl_preread_alpn_protocols')->plan(5);
 
 ###############################################################################
 
@@ -114,9 +114,7 @@ is(get_ssl(8081, 'bar'), $p2, 'alpn 2 ag
 
 is(get_ssl(8081, 'foo', 'bar'), $p3, 'alpn many');
 
-# fallback to an empty value
-
-ok(!get_ssl(8081, ''), 'alpn empty');
+get_ssl(8081, '');
 
 ###############################################################################