Mercurial > hg > nginx-tests
diff proxy_cache_use_stale.t @ 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 | 5ac6efbe5552 |
children | e3dd111410fe |
line wrap: on
line diff
--- a/proxy_cache_use_stale.t +++ b/proxy_cache_use_stale.t @@ -238,12 +238,12 @@ like(http_get('/updating/t2.html'), qr/S # 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));