comparison stream_ssl_variables.t @ 1235:3fc6817cd84a

Tests: explicit peer port in stream tests now required. Notably, this eliminates extra port acquire for the default port number in cases when it was not actually used.
author Andrey Zelenkov <zelenkov@nginx.com>
date Thu, 26 Oct 2017 16:36:13 +0300
parents 0af58b78df35
children 766bcbb632ee
comparison
equal deleted inserted replaced
1234:0defcc1c87ab 1235:3fc6817cd84a
94 94
95 ############################################################################### 95 ###############################################################################
96 96
97 my ($s, $ssl); 97 my ($s, $ssl);
98 98
99 is(stream()->read(), ':::', 'no ssl'); 99 is(stream('127.0.0.1:' . port(8080))->read(), ':::', 'no ssl');
100 100
101 ($s, $ssl) = get_ssl_socket(port(8081)); 101 ($s, $ssl) = get_ssl_socket(port(8081));
102 like(Net::SSLeay::read($ssl), qr/^\.:(\w{64})?:[\w-]+:(TLS|SSL)v(\d|\.)+$/, 102 like(Net::SSLeay::read($ssl), qr/^\.:(\w{64})?:[\w-]+:(TLS|SSL)v(\d|\.)+$/,
103 'ssl variables'); 103 'ssl variables');
104 104