Mercurial > hg > nginx-tests
diff proxy_cache_use_stale.t @ 1381:97c8280de681
Tests: removed TODO and try_run() checks for legacy versions.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Mon, 08 Oct 2018 15:30:39 +0300 |
parents | fc43a3555095 |
children | aaaa8a40250b |
line wrap: on
line diff
--- a/proxy_cache_use_stale.t +++ b/proxy_cache_use_stale.t @@ -220,9 +220,6 @@ 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 -TODO: { -local $TODO = 'not yet' unless $t->has_version('1.13.1'); - $t->write_file('t7.html', 'SEE-THAT' x 1024); my $r = read_all(get('/t7.html?lim=1', 'max-age=1', start => 1)); @@ -234,8 +231,6 @@ like($r, qr/STALE.*^(SEE-THIS){1024}$/ms $r = read_all(http_get('/ssi.html', start => 1)); like($r, qr/^xxx (SEE-THIS){1024} xxx$/ms, 's-w-r - not blocked in subrequest'); -} - # "aio_write" is used to produce "open socket ... left in connection" alerts. $t->todo_alerts() if $t->read_file('nginx.conf') =~ /aio_write on/ @@ -255,15 +250,9 @@ like(http_get('/t2.html?if=1'), qr/HIT/, get('/escape.htm%6C', 'max-age=1'); get('/escape html', 'max-age=1'); -TODO: { -local $TODO = 'not yet' unless $t->has_version('1.13.8'); - like(http_get('/escape.htm%6C'), qr/HIT/, 'escaped after escaped'); like(http_get('/escape.html'), qr/MISS/, 'unescaped after escaped'); like(http_get('/escape html'), qr/HIT/, 'space after escaped space'); - -} - like(http_get('/escape%20html'), qr/HIT/, 'escaped space after escaped space'); ###############################################################################