comparison proxy_cache_range.t @ 382:30364c578416

Tests: adjusted TODO for single range not-yet-cached requests.
author Sergey Kandaurov <pluknet@nginx.com>
date Mon, 24 Mar 2014 12:27:43 +0400
parents 1d6abf0db011
children 847ea345becb
comparison
equal deleted inserted replaced
381:056d0ad0ef03 382:30364c578416
65 $t->run(); 65 $t->run();
66 66
67 ############################################################################### 67 ###############################################################################
68 68
69 { 69 {
70 local $TODO = 'not yet'; 70 local $TODO = 'not yet' unless $t->has_version('1.5.13');
71 71
72 like(http_get_range('/t.html?1', 'Range: bytes=4-'), qr/^THIS/m, 72 like(http_get_range('/t.html?1', 'Range: bytes=4-'), qr/^THIS/m,
73 'range on first request'); 73 'range on first request');
74 }
75
76 {
77 local $TODO = 'not yet';
78
74 like(http_get_range('/t.html?2', 'Range: bytes=0-2,4-'), qr/^SEE.*^THIS/ms, 79 like(http_get_range('/t.html?2', 'Range: bytes=0-2,4-'), qr/^SEE.*^THIS/ms,
75 'multipart range on first request'); 80 'multipart range on first request');
76 } 81 }
77 82
78 like(http_get_range('/t.html?1', 'Range: bytes=4-'), qr/^THIS/m, 83 like(http_get_range('/t.html?1', 'Range: bytes=4-'), qr/^THIS/m,