Mercurial > hg > nginx-tests
diff proxy_cache_use_stale.t @ 1137:129b9e4ca3b3
Tests: reduced race in proxy_cache_use_stale tests.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Mon, 27 Feb 2017 14:06:36 +0300 |
parents | d77c331affff |
children | d6acd17ca4e3 |
line wrap: on
line diff
--- a/proxy_cache_use_stale.t Tue Feb 21 13:29:02 2017 +0300 +++ b/proxy_cache_use_stale.t Mon Feb 27 14:06:36 2017 +0300 @@ -150,6 +150,7 @@ $t->write_file('t6.html', 'SEE-THAT'); my $s = get('/t6.html', 'max-age=1, stale-while-revalidate=2', start => 1); +select undef, undef, undef, 0.2; like(http_get('/t6.html'), qr/UPDATING.*SEE-THIS/s, 's-w-r - updating'); like(http_end($s), qr/STALE.*SEE-THIS/s, 's-w-r - updating stale'); like(http_get('/t6.html'), qr/HIT.*SEE-THAT/s, 's-w-r - updating revalidated');