Mercurial > hg > nginx-tests
diff proxy_cache_lock_age.t @ 576:239ade56c015
Tests: more proxy_cache_lock_age tests.
Reflect that when an aged request completes, the response updates proxy cache.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Thu, 14 May 2015 17:28:52 +0300 |
parents | 2cd00179f4b2 |
children | e9064d691790 |
line wrap: on
line diff
--- a/proxy_cache_lock_age.t Thu May 14 17:04:42 2015 +0300 +++ b/proxy_cache_lock_age.t Thu May 14 17:28:52 2015 +0300 @@ -17,14 +17,14 @@ BEGIN { use FindBin; chdir($FindBin::Bin); } use lib 'lib'; -use Test::Nginx; +use Test::Nginx qw/ :DEFAULT http_end /; ############################################################################### select STDERR; $| = 1; select STDOUT; $| = 1; -my $t = Test::Nginx->new()->has(qw/http proxy cache shmem/)->plan(2) +my $t = Test::Nginx->new()->has(qw/http proxy cache shmem/)->plan(4) ->write_file_expand('nginx.conf', <<'EOF'); %%TEST_GLOBALS%% @@ -68,6 +68,9 @@ http_get('/close'); +like(http_end($s), qr/request 1/, 'request aged'); +like(http_get('/'), qr/request 1/, 'request aged cached'); + ############################################################################### sub http_daemon {