# HG changeset patch # User Maxim Dounin # Date 1723217845 -10800 # Node ID 15f538440a7734a57353054f2f2e33808f8a1174 # Parent 6b3b31149551efb88fa863901563932c19679db2 Tests: adjusted proxy_cache_use_stale.t cache validity. At least the "s-w-r - updating stale" test sometimes fails on slow hosts due to "stale-while-revalidate=4" being not enough, so the request returns with the EXPIRED cache status instead of STALE. Fix is to use larger "stale-while-revalidate=" times where it is not significant. diff -r 6b3b31149551 -r 15f538440a77 proxy_cache_use_stale.t --- a/proxy_cache_use_stale.t Fri Aug 09 05:21:04 2024 +0300 +++ b/proxy_cache_use_stale.t Fri Aug 09 18:37:25 2024 +0300 @@ -163,9 +163,9 @@ get('/tt.html', 'max-age=1, stale-if-error=3'); get('/t3.html', 'max-age=1, stale-while-revalidate=2'); -get('/t4.html', 'max-age=1, stale-while-revalidate=3'); -get('/t5.html', 'max-age=1, stale-while-revalidate=3'); -get('/t6.html', 'max-age=1, stale-while-revalidate=4'); +get('/t4.html', 'max-age=1, stale-while-revalidate=10'); +get('/t5.html', 'max-age=1, stale-while-revalidate=10'); +get('/t6.html', 'max-age=1, stale-while-revalidate=10'); get('/t7.html', 'max-age=1, stale-while-revalidate=10'); http_get('/ssi.html'); get('/updating/t.html', 'max-age=1');