Mercurial > hg > nginx-tests
comparison 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 | 76fdf5ede7c0 |
children | 6b1222de8286 |
comparison
equal
deleted
inserted
replaced
1986:11463d379570 | 1987:a095b971fbcc |
---|---|
21 ############################################################################### | 21 ############################################################################### |
22 | 22 |
23 select STDERR; $| = 1; | 23 select STDERR; $| = 1; |
24 select STDOUT; $| = 1; | 24 select STDOUT; $| = 1; |
25 | 25 |
26 my $t = Test::Nginx->new()->has(qw/http map/) | 26 my $t = Test::Nginx->new()->has(qw/http map/)->plan(14) |
27 ->write_file_expand('nginx.conf', <<'EOF'); | 27 ->write_file_expand('nginx.conf', <<'EOF'); |
28 | 28 |
29 %%TEST_GLOBALS%% | 29 %%TEST_GLOBALS%% |
30 | 30 |
31 daemon off; | 31 daemon off; |
78 } | 78 } |
79 | 79 |
80 EOF | 80 EOF |
81 | 81 |
82 $t->write_file('t1', 'SEE-THIS'); | 82 $t->write_file('t1', 'SEE-THIS'); |
83 $t->try_run('no proxy_protocol tlv')->plan(14); | 83 $t->run(); |
84 | 84 |
85 ############################################################################### | 85 ############################################################################### |
86 | 86 |
87 my $tlv = pp2_create_tlv(0x1, "ALPN1"); | 87 my $tlv = pp2_create_tlv(0x1, "ALPN1"); |
88 $tlv .= pp2_create_tlv(0x2, "localhost"); | 88 $tlv .= pp2_create_tlv(0x2, "localhost"); |