Mercurial > hg > nginx-tests
diff h2_ssl_proxy_cache.t @ 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 | 45c80276d691 |
children | efccab043dd3 |
line wrap: on
line diff
--- a/h2_ssl_proxy_cache.t +++ b/h2_ssl_proxy_cache.t @@ -95,14 +95,14 @@ open OLDERR, ">&", \*STDERR; close STDER $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 @@ my $sid = $s->new_stream(); # 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);