comparison proxy_keepalive.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 6cbcfb4ef7ee
children 6cdfd177319b
comparison
equal deleted inserted replaced
592:355f2d5ff60f 593:6c0a5903d0ae
23 23
24 select STDERR; $| = 1; 24 select STDERR; $| = 1;
25 select STDOUT; $| = 1; 25 select STDOUT; $| = 1;
26 26
27 my $t = Test::Nginx->new()->has(qw/http proxy upstream_keepalive ssi rewrite/) 27 my $t = Test::Nginx->new()->has(qw/http proxy upstream_keepalive ssi rewrite/)
28 ->plan(50)->write_file_expand('nginx.conf', <<'EOF'); 28 ->plan(49)->write_file_expand('nginx.conf', <<'EOF');
29 29
30 %%TEST_GLOBALS%% 30 %%TEST_GLOBALS%%
31 31
32 daemon off; 32 daemon off;
33 33
207 like(http_get('/inmemory/closed1'), qr/200 OK/, 'inmemory closed 1'); 207 like(http_get('/inmemory/closed1'), qr/200 OK/, 'inmemory closed 1');
208 like(http_get('/inmemory/closed2'), qr/200 OK/, 'inmemory closed 2'); 208 like(http_get('/inmemory/closed2'), qr/200 OK/, 'inmemory closed 2');
209 209
210 # check for errors, shouldn't be any 210 # check for errors, shouldn't be any
211 211
212 like(`grep -F '[alert]' ${\($t->testdir())}/error.log`, qr/^$/s, 'no alerts');
213 like(`grep -F '[error]' ${\($t->testdir())}/error.log`, qr/^$/s, 'no errors'); 212 like(`grep -F '[error]' ${\($t->testdir())}/error.log`, qr/^$/s, 'no errors');
214 213
215 ############################################################################### 214 ###############################################################################
216 215
217 sub http_daemon { 216 sub http_daemon {