Mercurial > hg > nginx-tests
changeset 1704:4b808861a318
Tests: proxy_cache_use_stale.t speedup.
Tests for not blocked stale responses are adjusted to have a lesser new
response size. It should be enough to delay sending a new response for
just a couple of seconds to catch the old bug fixed in 1.13.1. This
allows to speed up shutting down nginx that waits for those responses.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Sat, 19 Jun 2021 19:09:59 +0300 |
parents | 8b7ab9245916 |
children | 99a9b8b50f21 |
files | proxy_cache_use_stale.t |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/proxy_cache_use_stale.t Fri Jun 18 20:02:00 2021 +0300 +++ b/proxy_cache_use_stale.t Sat Jun 19 19:09:59 2021 +0300 @@ -238,12 +238,12 @@ # before 1.13.1, if stale response was not sent in one pass, its remaining # part was blocked and not sent until background update has been finished -$t->write_file('t7.html', 'SEE-THAT' x 1024); +$t->write_file('t7.html', 'SEE-THAT' x 256); my $r = read_all(get('/t7.html?lim=1', 'max-age=1', start => 1)); like($r, qr/STALE.*^(SEE-THIS){1024}$/ms, 's-w-r - stale response not blocked'); -$t->write_file('t9.html', 'SEE-THAT' x 1024); +$t->write_file('t9.html', 'SEE-THAT' x 256); $t->write_file('ssi.html', 'xxx <!--#include virtual="/t9.html?lim=1" --> xxx'); $r = read_all(http_get('/ssi.html', start => 1));