Mercurial > hg > nginx-tests
comparison index2.t @ 1381:97c8280de681
Tests: removed TODO and try_run() checks for legacy versions.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Mon, 08 Oct 2018 15:30:39 +0300 |
parents | 200d9d091da2 |
children |
comparison
equal
deleted
inserted
replaced
1380:f50c7d90f5c9 | 1381:97c8280de681 |
---|---|
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(1) |
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; |
50 | 50 |
51 EOF | 51 EOF |
52 | 52 |
53 $t->write_file('localhosthtml', 'varbody'); | 53 $t->write_file('localhosthtml', 'varbody'); |
54 | 54 |
55 $t->try_run('unsupported token')->plan(1); | 55 $t->run(); |
56 | 56 |
57 ############################################################################### | 57 ############################################################################### |
58 | 58 |
59 like(http_get('/var/'), qr/X-URI: \/var\/localhosthtml.*varbody/ms, 'var'); | 59 like(http_get('/var/'), qr/X-URI: \/var\/localhosthtml.*varbody/ms, 'var'); |
60 | 60 |