Mercurial > hg > nginx-tests
diff stream_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 | fcd65708672d |
children | e4974af3fb12 |
line wrap: on
line diff
--- a/stream_variables.t +++ b/stream_variables.t @@ -81,7 +81,8 @@ EOF ############################################################################### chomp(my $hostname = lc `hostname`); -like(stream()->read(), qr/^\d+:[\d.]+:$hostname:\d+:0$/, 'vars'); +like(stream('127.0.0.1:' . port(8080))->read(), + qr/^\d+:[\d.]+:$hostname:\d+:0$/, 'vars'); my $dport = port(8081); my $s = stream("127.0.0.1:$dport");