Mercurial > hg > nginx-tests
diff h2_proxy_protocol.t @ 974:882267679006
Tests: simplified parallel modifications in tests.
Mail tests were simplified in c227348453db.
author | Andrey Zelenkov <zelenkov@nginx.com> |
---|---|
date | Tue, 12 Jul 2016 17:39:03 +0300 |
parents | e9064d691790 |
children | a0ee073760c5 |
line wrap: on
line diff
--- a/h2_proxy_protocol.t Sun Jul 10 18:57:12 2016 +0300 +++ b/h2_proxy_protocol.t Tue Jul 12 17:39:03 2016 +0300 @@ -39,7 +39,7 @@ %%TEST_GLOBALS_HTTP%% server { - listen 127.0.0.1:%%PORT_0%% proxy_protocol http2; + listen 127.0.0.1:8080 proxy_protocol http2; server_name localhost; location /pp { @@ -59,7 +59,7 @@ ############################################################################### my $proxy = 'PROXY TCP4 192.0.2.1 192.0.2.2 1234 5678' . CRLF; -my $s = Test::Nginx::HTTP2->new(port(0), proxy => $proxy); +my $s = Test::Nginx::HTTP2->new(port(8080), proxy => $proxy); my $sid = $s->new_stream({ path => '/pp' }); my $frames = $s->read(all => [{ sid => $sid, fin => 1 }]); @@ -70,7 +70,7 @@ # invalid PROXY protocol string $proxy = 'BOGUS TCP4 192.0.2.1 192.0.2.2 1234 5678' . CRLF; -$s = Test::Nginx::HTTP2->new(port(0), preface => $proxy, pure => 1); +$s = Test::Nginx::HTTP2->new(port(8080), preface => $proxy, pure => 1); $frames = $s->read(all => [{ type => 'GOAWAY' }]); ($frame) = grep { $_->{type} eq "GOAWAY" } @$frames;