Mercurial > hg > nginx-tests
comparison slice.t @ 1251:766bcbb632ee
Tests: removed TODO and try_run() checks for legacy versions.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Fri, 24 Nov 2017 19:58:40 +0300 |
parents | 0c15ba7d19b3 |
children | 97c8280de681 |
comparison
equal
deleted
inserted
replaced
1250:b708848eb49a | 1251:766bcbb632ee |
---|---|
283 'fastcgi slice next'); | 283 'fastcgi slice next'); |
284 } | 284 } |
285 | 285 |
286 # slicing in named location | 286 # slicing in named location |
287 | 287 |
288 my $s = http_get('/cache-redirect', start => 1); | 288 $r = http_get('/cache-redirect'); |
289 # loop protection used with limit_rate, exit loop if subrequest has lost range | |
290 unless ($t->has_version('1.11.10')) { | |
291 select undef, undef, undef, 0.2; | |
292 $t->write_file('/cache-redirect', ''); | |
293 } | |
294 $r = http_end($s); | |
295 | |
296 TODO: { | |
297 local $TODO = 'not yet' unless $t->has_version('1.11.10'); | |
298 | 289 |
299 like($r, qr/ 200 .*^0123456789abcdef$/ms, 'in named location'); | 290 like($r, qr/ 200 .*^0123456789abcdef$/ms, 'in named location'); |
300 is(scalar @{[ glob $t->testdir() . '/cach3/*' ]}, 8, | 291 is(scalar @{[ glob $t->testdir() . '/cach3/*' ]}, 8, |
301 'in named location - cache entries'); | 292 'in named location - cache entries'); |
302 | |
303 } | |
304 | 293 |
305 ############################################################################### | 294 ############################################################################### |
306 | 295 |
307 sub get { | 296 sub get { |
308 my ($url, $extra) = @_; | 297 my ($url, $extra) = @_; |