# HG changeset patch # User Maxim Dounin # Date 1261662883 -10800 # Node ID 598b758c68a9d9e3e44b2e4e7a0ee02e3c0a2876 # Parent 18fc08c160ce1c30e0a92cc1e4a2546fe68fabad 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. diff --git a/proxy-cache.t b/proxy-cache.t --- 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'); +} ###############################################################################