Mercurial > hg > nginx-tests
diff slice.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 | 766bcbb632ee |
children | ab13e2744d05 |
line wrap: on
line diff
--- a/slice.t +++ b/slice.t @@ -233,16 +233,11 @@ like($r, qr/^34$/m, 'if-range - correct # respect Last-Modified from non-cacheable response with If-Range -TODO: { -local $TODO = 'not yet' unless $t->has_version('1.13.5'); - my ($lm) = http_get('/t') =~ /Last-Modified: (.*)/; $r = get('/proxy/t', "Range: bytes=3-4\nIf-Range: $lm"); like($r, qr/ 206 /, 'if-range last-modified proxy - 206 partial reply'); like($r, qr/^34$/m, 'if-range last-modified proxy - correct content'); -} - $r = get('/cache/t?ifb', "Range: bytes=3-4\nIf-Range: bad"); like($r, qr/ 200 /, 'if-range bad - 200 ok'); like($r, qr/^0123456789abcdef$/m, 'if-range bad - correct content');