Skip to content

Commit 7ecb7ae

Browse files
committed
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.
1 parent 680e123 commit 7ecb7ae

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

proxy_protocol2_tlv.t

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ use Test::Nginx;
2323
select STDERR; $| = 1;
2424
select STDOUT; $| = 1;
2525

26-
my $t = Test::Nginx->new()->has(qw/http access rewrite/)->plan(15)
26+
my $t = Test::Nginx->new()->has(qw/http access rewrite/)
2727
->write_file_expand('nginx.conf', <<'EOF');
2828
2929
%%TEST_GLOBALS%%
@@ -79,6 +79,9 @@ http {
7979
8080
EOF
8181

82+
plan(skip_all => 'not yet') unless $t->has_version('1.23.2');
83+
$t->plan(15);
84+
8285
$t->run();
8386

8487
###############################################################################
@@ -113,9 +116,6 @@ my $tlv = $p . pack("CnN2n2N21nN2nN2nN4", 0x11, 134, 0xc0000201, 0xc0000202,
113116
0xae000531, 0x32333435);
114117
my $r;
115118

116-
TODO: {
117-
local $TODO = 'not yet' unless $t->has_version('1.23.2');
118-
119119
$r = pp_get('/t1', $tlv);
120120
like($r, qr/X-ALPN: ALPN1-ALPN1\x0d/, 'ALPN - tlv named variable');
121121
like($r, qr/X-AUTHORITY: localhost-localhost\x0d/,
@@ -139,8 +139,6 @@ like($r, qr/X-TLV-CUSTOM: 12345\x0d/,
139139
'custom - tlv numeric variable');
140140
like($r, qr/X-TLV-X: -\x0d/, 'non-existent - tlv numeric variable');
141141

142-
}
143-
144142
###############################################################################
145143

146144
sub pp_get {

0 commit comments

Comments
 (0)