Mercurial > hg > nginx-tests
diff stream_proxy_protocol2_tlv.t @ 1987:a095b971fbcc
Tests: removed TODO and try_run() checks for legacy versions.
For h2_http2.t, try_run() is preserved to ensure that deprecation
warnings for "listen ... http2" are suppressed, yet plan() is reported
before try_run(), so failure to start will be properly reported.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Tue, 04 Jun 2024 18:38:01 +0300 |
parents | 6040bfd6acbd |
children | 6b1222de8286 |
line wrap: on
line diff
--- a/stream_proxy_protocol2_tlv.t +++ b/stream_proxy_protocol2_tlv.t @@ -24,7 +24,7 @@ use Test::Nginx::Stream qw/ stream /; select STDERR; $| = 1; select STDOUT; $| = 1; -my $t = Test::Nginx->new()->has(qw/stream stream_return map/) +my $t = Test::Nginx->new()->has(qw/stream stream_return map/)->plan(14) ->write_file_expand('nginx.conf', <<'EOF'); %%TEST_GLOBALS%% @@ -63,7 +63,7 @@ stream { EOF -$t->try_run('no proxy_protocol tlv')->plan(14); +$t->run(); ############################################################################### @@ -86,9 +86,6 @@ like($r, qr/x:\x0d?$/m, 'non-existent'); # big proxy protocol header with TLVs -TODO: { -local $TODO = 'not yet' unless $t->has_version('1.23.3'); - my $sub = pp2_create_tlv(0x21, "TLSv1.2"); $sub .= pp2_create_tlv(0x22, "example.com"); $sub .= pp2_create_tlv(0x23, "AES256-SHA"); @@ -107,8 +104,6 @@ like($r, qr/ssl-sig-alg:SHA1\x0d?$/m, 'S like($r, qr/ssl-key-alg:RSA512\x0d?$/m, 'SSL_KEY_ALG'); like($r, qr/ssl-binary:true/, 'SSL_BINARY'); -} - ############################################################################### sub pp_get {