Mercurial > hg > nginx-tests
changeset 120:598b758c68a9
Tests: empty cached responses partially fixed in 0.8.31.
Fix doesn't address duplicate final chunks though, and I believe the fix is
generally wrong.
While it's probably ok to return non-gzipped empty response instead of gzipped
one in 'empty get stale' test - addition filter will be clearly broken. So
mark this test as broken instead of changing it.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Thu, 24 Dec 2009 16:54:43 +0300 |
parents | 18fc08c160ce |
children | 8ac1faaddd2c |
files | proxy-cache.t |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/proxy-cache.t +++ b/proxy-cache.t @@ -89,9 +89,10 @@ like(http_get('/t2.html'), qr/SEE-THIS/, unlike(http_head('/t2.html'), qr/SEE-THIS/, 'head after get'); like(http_get('/empty.html'), qr/HTTP/, 'empty get first'); +like(http_get('/empty.html'), qr/HTTP/, 'empty get second'); + { local $TODO = 'not fixed yet'; -like(http_get('/empty.html'), qr/HTTP/, 'empty get second'); sleep(2); unlink $t->testdir() . '/t.html'; @@ -100,9 +101,13 @@ like(http_gzip_request('/t.html'), 'non-empty get stale'); } +{ +local $TODO = 'broken in 0.8.31'; + unlink $t->testdir() . '/empty.html'; like(http_gzip_request('/empty.html'), qr/HTTP.*14\x0d\x0a.{20}\x0d\x0a0\x0d\x0a\x0d\x0a\z/s, 'empty get stale'); +} ###############################################################################