Mercurial > hg > nginx-tests
changeset 1038:a034903de974
Tests: use port numbers from 8xxx pool.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Tue, 20 Sep 2016 13:08:53 +0300 |
parents | 92479d9429ff |
children | 90a0d85436c1 |
files | h2_ssl.t h2_ssl_proxy_cache.t |
diffstat | 2 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/h2_ssl.t Mon Sep 19 19:09:45 2016 +0300 +++ b/h2_ssl.t Tue Sep 20 13:08:53 2016 +0300 @@ -81,7 +81,7 @@ $t->run(); open STDERR, ">&", \*OLDERR; -plan(skip_all => 'no ALPN/NPN negotiation') unless defined getconn(port(0)); +plan(skip_all => 'no ALPN/NPN negotiation') unless defined getconn(port(8080)); $t->plan(1); ############################################################################### @@ -90,7 +90,7 @@ # while some unsent data was left in the SSL buffer # HEADERS frame may stuck in SSL buffer and won't be sent producing alert -my $s = getconn(port(0)); +my $s = getconn(port(8080)); ok($s, 'ssl connection'); my $sid = $s->new_stream({ path => '/tbig.html' });
--- a/h2_ssl_proxy_cache.t Mon Sep 19 19:09:45 2016 +0300 +++ b/h2_ssl_proxy_cache.t Tue Sep 20 13:08:53 2016 +0300 @@ -95,14 +95,14 @@ $t->run(); open STDERR, ">&", \*OLDERR; -plan(skip_all => 'no ALPN/NPN negotiation') unless defined getconn(port(0)); +plan(skip_all => 'no ALPN/NPN negotiation') unless defined getconn(port(8080)); $t->plan(1); ############################################################################### # client cancels stream with a cacheable request sent to upstream causing alert -my $s = getconn(port(0)); +my $s = getconn(port(8080)); ok($s, 'ssl connection'); my $sid = $s->new_stream(); @@ -110,7 +110,7 @@ # large response may stuck in SSL buffer and won't be sent producing alert -my $s2 = getconn(port(0)); +my $s2 = getconn(port(8080)); $sid = $s2->new_stream({ path => '/tbig.html' }); $s2->h2_window(2**30, $sid); $s2->h2_window(2**30);