Mercurial > hg > nginx-tests
diff stream_proxy.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 | 882267679006 |
children | f3ba4c74de31 |
line wrap: on
line diff
--- a/stream_proxy.t Mon Oct 23 18:42:43 2017 +0300 +++ b/stream_proxy.t Thu Oct 26 16:36:13 2017 +0300 @@ -50,14 +50,14 @@ ############################################################################### -my $s = stream(); +my $s = stream('127.0.0.1:' . port(8080)); is($s->io('foo1', length => 4), 'bar1', 'proxy connection'); is($s->io('foo3', length => 4), 'bar3', 'proxy connection again'); is($s->io('close'), 'close', 'proxy connection close'); is($s->io('test'), '', 'proxy connection closed'); -$s = stream(); +$s = stream('127.0.0.1:' . port(8080)); sleep 3;