comparison proxy_cache_range.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 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 proxy cache shmem/)->plan(7) 24 my $t = Test::Nginx->new()->has(qw/http proxy cache shmem/)->plan(6)
25 ->write_file_expand('nginx.conf', <<'EOF'); 25 ->write_file_expand('nginx.conf', <<'EOF');
26 26
27 %%TEST_GLOBALS%% 27 %%TEST_GLOBALS%%
28 28
29 daemon off; 29 daemon off;
89 qr/^THIS/m, 'range below min_uses'); 89 qr/^THIS/m, 'range below min_uses');
90 90
91 like(http_get_range('/min_uses/t.html?4', 'Range: bytes=0-2,4-'), 91 like(http_get_range('/min_uses/t.html?4', 'Range: bytes=0-2,4-'),
92 qr/^SEE.*^THIS/ms, 'multipart range below min_uses'); 92 qr/^SEE.*^THIS/ms, 'multipart range below min_uses');
93 93
94 like(`grep -F '[alert]' ${\($t->testdir())}/error.log`, qr/^$/s, 'no alerts');
95
96 ############################################################################### 94 ###############################################################################
97 95
98 sub http_get_range { 96 sub http_get_range {
99 my ($url, $extra) = @_; 97 my ($url, $extra) = @_;
100 return http(<<EOF); 98 return http(<<EOF);