changeset 1801:f129b693d83e

Tests: skip proxy_protocol2_tlv.t for nginx stable. It fails with the nginx 1.22.1 due to lack of support $proxy_protocol_tlv_* variables.
author Eugene Grebenschikov <e.grebenshchikov@f5.com>
date Wed, 26 Oct 2022 13:29:19 -0700
parents 074974eb9182
children 506e1a716fe8
files proxy_protocol2_tlv.t
diffstat 1 files changed, 4 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/proxy_protocol2_tlv.t
+++ b/proxy_protocol2_tlv.t
@@ -23,7 +23,7 @@ use Test::Nginx;
 select STDERR; $| = 1;
 select STDOUT; $| = 1;
 
-my $t = Test::Nginx->new()->has(qw/http access rewrite/)->plan(15)
+my $t = Test::Nginx->new()->has(qw/http access rewrite/)
 	->write_file_expand('nginx.conf', <<'EOF');
 
 %%TEST_GLOBALS%%
@@ -79,6 +79,9 @@ http {
 
 EOF
 
+plan(skip_all => 'not yet') unless $t->has_version('1.23.2');
+$t->plan(15);
+
 $t->run();
 
 ###############################################################################
@@ -113,9 +116,6 @@ my $tlv = $p . pack("CnN2n2N21nN2nN2nN4"
 	0xae000531, 0x32333435);
 my $r;
 
-TODO: {
-local $TODO = 'not yet' unless $t->has_version('1.23.2');
-
 $r = pp_get('/t1', $tlv);
 like($r, qr/X-ALPN: ALPN1-ALPN1\x0d/, 'ALPN - tlv named variable');
 like($r, qr/X-AUTHORITY: localhost-localhost\x0d/,
@@ -139,8 +139,6 @@ like($r, qr/X-TLV-CUSTOM: 12345\x0d/,
 	'custom - tlv numeric variable');
 like($r, qr/X-TLV-X: -\x0d/, 'non-existent - tlv numeric variable');
 
-}
-
 ###############################################################################
 
 sub pp_get {