Mercurial > hg > nginx-tests
diff slice.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 | ab13e2744d05 |
children |
line wrap: on
line diff
--- a/slice.t +++ b/slice.t @@ -15,7 +15,7 @@ use Test::More; BEGIN { use FindBin; chdir($FindBin::Bin); } use lib 'lib'; -use Test::Nginx qw/ :DEFAULT http_end /; +use Test::Nginx; ############################################################################### @@ -134,14 +134,8 @@ like(http_get('/cache/t'), qr/ 200 .*012 $r = get('/proxy/t', 'Range: bytes=3-4'); like($r, qr/ 206 /, 'proxy - 206 partial reply'); like($r, qr/^34$/m, 'proxy - correct content'); - -TODO: { -local $TODO = 'not yet' unless $t->has_version('1.19.2'); - unlike($r, qr/Accept-Ranges/, 'proxy - no original accept-ranges'); -} - $r = get('/cache/t?single', "Range: bytes=0-0"); like($r, qr/ 206 /, 'single - 206 partial reply'); like($r, qr/^0$/m, 'single - correct content');