Mercurial > hg > nginx-tests
diff proxy_unfinished.t @ 319:e9de4da234c0
Tests: add version checks to TODOs for committed patches.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Thu, 25 Jul 2013 18:35:56 +0400 |
parents | 81c98592661f |
children | e7dc8f4d0a4b |
line wrap: on
line diff
--- a/proxy_unfinished.t +++ b/proxy_unfinished.t @@ -99,7 +99,7 @@ http_get('/cache/length'); like(http_get('/cache/length'), qr/MISS/, 'unfinished not cached'); TODO: { -local $TODO = 'not yet'; +local $TODO = 'not yet' unless $t->has_version('1.5.3'); # chunked encoding has enough information to don't cache a response, # much like with Content-Length available @@ -110,7 +110,7 @@ like(http_get('/cache/chunked'), qr/MISS } TODO: { -local $TODO = 'not yet'; +local $TODO = 'not yet' unless $t->has_version('1.5.3'); # make sure there is no final chunk in unfinished responses @@ -129,7 +129,7 @@ like(http_get_11('/chunked/ok'), qr/fini 'chunked final chunk'); TODO: { -local $TODO = 'not yet'; +local $TODO = 'not yet' unless $t->has_version('1.5.3'); # the same with proxy_buffering set to off @@ -153,7 +153,7 @@ like(http_get('/un/big', sleep => 0.1), like(http_get('/un/big/ok', sleep => 0.1), qr/finished/s, 'big finished un'); TODO: { -local $TODO = 'not yet'; +local $TODO = 'not yet' unless $t->has_version('1.5.3'); # if disk buffering fails for some reason, there should be # no final chunk