# HG changeset patch # User Sergey Kandaurov # Date 1448455988 -10800 # Node ID dfd214db57f4a64e555c4f2c212b36485bce8b2e # Parent eb257a102a9b1a65fd15f7098c9ab81b2daa88d5 Tests: adjusted proxy_cache_revalidate.t timeouts. Two adjacent requests may not fit in 1s caching time on slow hosts. diff --git a/proxy_cache_revalidate.t b/proxy_cache_revalidate.t --- a/proxy_cache_revalidate.t +++ b/proxy_cache_revalidate.t @@ -47,7 +47,7 @@ http { proxy_pass http://127.0.0.1:8081; proxy_cache one; - proxy_cache_valid 200 404 1s; + proxy_cache_valid 200 404 2s; add_header X-Cache-Status $upstream_cache_status; } @@ -104,7 +104,7 @@ like(http_get('/t3'), qr/SEE/, 'cache be # wait for a while for cached responses to expire -select undef, undef, undef, 2.5; +select undef, undef, undef, 3.5; # 1st document isn't modified, and should be revalidated on first request # (a 304 status code will appear in backend's logs), then cached again @@ -148,7 +148,7 @@ unlike(http_get('/201'), qr/X-If-Modifie # wait for a while for a cached 404 response to expire -select undef, undef, undef, 2.5; +select undef, undef, undef, 3.5; # check that conditional requests are not used to revalidate 404 response