Mercurial > hg > nginx-tests
comparison ssi_waited.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 | 6a0d934950bc |
children | e9064d691790 |
comparison
equal
deleted
inserted
replaced
592:355f2d5ff60f | 593:6c0a5903d0ae |
---|---|
19 ############################################################################### | 19 ############################################################################### |
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 ssi/)->plan(2); | 24 my $t = Test::Nginx->new()->has(qw/http ssi/)->plan(1); |
25 | 25 |
26 $t->write_file_expand('nginx.conf', <<'EOF'); | 26 $t->write_file_expand('nginx.conf', <<'EOF'); |
27 | 27 |
28 %%TEST_GLOBALS%% | 28 %%TEST_GLOBALS%% |
29 | 29 |
57 | 57 |
58 ############################################################################### | 58 ############################################################################### |
59 | 59 |
60 like(http_get('/'), qr/^xFIRSTxWAITEDxSECONDx$/m, 'waited non-active'); | 60 like(http_get('/'), qr/^xFIRSTxWAITEDxSECONDx$/m, 'waited non-active'); |
61 | 61 |
62 like(`grep -F '[alert]' ${\($t->testdir())}/error.log`, qr/^$/s, 'no alerts'); | |
63 | |
64 ############################################################################### | 62 ############################################################################### |