Mercurial > hg > nginx-tests
comparison image_filter_finalize.t @ 593:6c0a5903d0ae
Tests: cleanup now duplicating tests for no alerts.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Wed, 27 May 2015 17:09:22 +0300 |
parents | 2cd00179f4b2 |
children | 99233cfefbbe |
comparison
equal
deleted
inserted
replaced
592:355f2d5ff60f | 593:6c0a5903d0ae |
---|---|
20 | 20 |
21 select STDERR; $| = 1; | 21 select STDERR; $| = 1; |
22 select STDOUT; $| = 1; | 22 select STDOUT; $| = 1; |
23 | 23 |
24 my $t = Test::Nginx->new()->has(qw/http proxy cache image_filter limit_req/) | 24 my $t = Test::Nginx->new()->has(qw/http proxy cache image_filter limit_req/) |
25 ->has(qw/rewrite shmem/)->plan(4) | 25 ->has(qw/rewrite shmem/)->plan(3) |
26 ->write_file_expand('nginx.conf', <<'EOF'); | 26 ->write_file_expand('nginx.conf', <<'EOF'); |
27 | 27 |
28 %%TEST_GLOBALS%% | 28 %%TEST_GLOBALS%% |
29 | 29 |
30 daemon off; | 30 daemon off; |
140 | 140 |
141 http_get('/slow'); | 141 http_get('/slow'); |
142 http_get('/t3'); | 142 http_get('/t3'); |
143 like(http_get('/time.log'), qr!/t3:.*, [1-9]\.!, 'upstream response time'); | 143 like(http_get('/time.log'), qr!/t3:.*, [1-9]\.!, 'upstream response time'); |
144 | 144 |
145 like(`grep -F '[alert]' ${\($t->testdir())}/error.log`, qr/^$/s, 'no alerts'); | |
146 | |
147 ############################################################################### | 145 ############################################################################### |