Mercurial > hg > nginx-tests
comparison headers.t @ 568:907e89fba9c3
Tests: removed TODO and try_run() checks for legacy versions.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Sun, 03 May 2015 12:45:09 +0300 |
parents | 9f972a386434 |
children | fcda5bd87ab2 |
comparison
equal
deleted
inserted
replaced
567:22bade4c7e12 | 568:907e89fba9c3 |
---|---|
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/) | 26 my $t = Test::Nginx->new()->has(qw/http/)->plan(25) |
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; |
109 $t->write_file('modified', ''); | 109 $t->write_file('modified', ''); |
110 $t->write_file('var', ''); | 110 $t->write_file('var', ''); |
111 $t->write_file('var_inner', ''); | 111 $t->write_file('var_inner', ''); |
112 $t->write_file('var_modified', ''); | 112 $t->write_file('var_modified', ''); |
113 | 113 |
114 $t->try_run('no add_header always or expires with variable')->plan(25); | 114 $t->run(); |
115 | 115 |
116 ############################################################################### | 116 ############################################################################### |
117 | 117 |
118 my $r; | 118 my $r; |
119 | 119 |