Mercurial > hg > nginx-tests
comparison proxy_cache.t @ 1020:196d33c2bb45
Tests: removed TODO and try_run() checks for legacy versions.
Also removed now unused spdy.t and shmem prerequisite.
author | Andrey Zelenkov <zelenkov@nginx.com> |
---|---|
date | Wed, 31 Aug 2016 18:21:07 +0300 |
parents | 882267679006 |
children |
comparison
equal
deleted
inserted
replaced
1019:41139d6f8b7b | 1020:196d33c2bb45 |
---|---|
19 ############################################################################### | 19 ############################################################################### |
20 | 20 |
21 select STDERR; $| = 1; | 21 select STDERR; $| = 1; |
22 select STDOUT; $| = 1; | 22 select STDOUT; $| = 1; |
23 | 23 |
24 my $t = Test::Nginx->new()->has(qw/http proxy cache gzip shmem/)->plan(15) | 24 my $t = Test::Nginx->new()->has(qw/http proxy cache gzip/)->plan(15) |
25 ->write_file_expand('nginx.conf', <<'EOF'); | 25 ->write_file_expand('nginx.conf', <<'EOF'); |
26 | 26 |
27 %%TEST_GLOBALS%% | 27 %%TEST_GLOBALS%% |
28 | 28 |
29 daemon off; | 29 daemon off; |
124 EOF | 124 EOF |
125 | 125 |
126 my $r = http_get('/t.html', socket => $s); | 126 my $r = http_get('/t.html', socket => $s); |
127 | 127 |
128 like($r, qr/Connection: keep-alive/, 'non-cacheable head - keepalive'); | 128 like($r, qr/Connection: keep-alive/, 'non-cacheable head - keepalive'); |
129 | |
130 TODO: { | |
131 local $TODO = 'not yet' unless $t->has_version('1.9.13'); | |
132 | |
133 like($r, qr/SEE-THIS/, 'non-cacheable head - second'); | 129 like($r, qr/SEE-THIS/, 'non-cacheable head - second'); |
134 | |
135 } | |
136 | 130 |
137 ############################################################################### | 131 ############################################################################### |
138 | 132 |
139 sub http_get_range { | 133 sub http_get_range { |
140 my ($url, $extra) = @_; | 134 my ($url, $extra) = @_; |