Mercurial > hg > nginx-tests
diff proxy_cache_vary.t @ 1693:5ac6efbe5552
Tests: removed TODO and try_run() checks for legacy versions.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Tue, 01 Jun 2021 16:40:18 +0300 |
parents | feb754918372 |
children | ce4419d32383 |
line wrap: on
line diff
--- a/proxy_cache_vary.t +++ b/proxy_cache_vary.t @@ -262,14 +262,8 @@ like(get('/', 'bar,foo'), qr/HIT/ms, 'no get1('/cold?vary=z', 'z:1'); like(get1('/cold?vary=x,y', 'x:1'), qr/MISS/, 'change first'); - -TODO: { -local $TODO = 'not yet' unless $t->has_version('1.19.3'); - like(get1('/cold?vary=x,y', 'x:1'), qr/HIT/, 'change first cached'); -} - like(get1('/cold?vary=x,y&xtra=1', 'x:2'), qr/MISS/, 'change second'); like(get1('/cold?vary=x,y&xtra=1', 'x:2'), qr/HIT/, 'change second cached'); @@ -282,23 +276,12 @@ like(get1('/cold?vary=x,y&xtra=1', 'x:2' # triggering "cache file .. has too long header" critical errors like(get1('/cold?vary=x,y', 'x:1'), qr/HIT/, 'cold first'); - -TODO: { -local $TODO = 'not yet' unless $t->has_version('1.19.3'); - like(get1('/cold?vary=x,y&xtra=1', 'x:2'), qr/HIT/, 'cold second'); -} - $t->stop(); -TODO: { -local $TODO = 'not yet' unless $t->has_version('1.19.3'); - like(`grep -F '[crit]' ${\($t->testdir())}/error.log`, qr/^$/s, 'no crit'); -} - ############################################################################### sub get {