Mercurial > hg > nginx-tests
comparison proxy_if.t @ 592:355f2d5ff60f
Tests: catch nginx alerts on exit.
The new todo_alerts() function is used to mark such a test as TODO.
Notably, proxy_if.t is currently expected to produce alerts.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Wed, 27 May 2015 16:58:35 +0300 |
parents | 907e89fba9c3 |
children | e9064d691790 |
comparison
equal
deleted
inserted
replaced
591:0b059d5e6887 | 592:355f2d5ff60f |
---|---|
23 select STDOUT; $| = 1; | 23 select STDOUT; $| = 1; |
24 | 24 |
25 my $t = Test::Nginx->new()->has(qw/http proxy rewrite http_ssl/) | 25 my $t = Test::Nginx->new()->has(qw/http proxy rewrite http_ssl/) |
26 ->has_daemon('openssl')->plan(15); | 26 ->has_daemon('openssl')->plan(15); |
27 | 27 |
28 $t->write_file_expand('nginx.conf', <<'EOF'); | 28 $t->write_file_expand('nginx.conf', <<'EOF')->todo_alerts(); |
29 | 29 |
30 %%TEST_GLOBALS%% | 30 %%TEST_GLOBALS%% |
31 | 31 |
32 daemon off; | 32 daemon off; |
33 | 33 |