Mercurial > hg > nginx-tests
changeset 1999:15f538440a77 default tip
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.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Fri, 09 Aug 2024 18:37:25 +0300 |
parents | 6b3b31149551 |
children | |
files | proxy_cache_use_stale.t |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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');