diff proxy_cache_vary.t @ 568:907e89fba9c3

Tests: removed TODO and try_run() checks for legacy versions.
author Sergey Kandaurov <pluknet@nginx.com>
date Sun, 03 May 2015 12:45:09 +0300
parents 34280f6b0bc6
children 2cd00179f4b2
line wrap: on
line diff
--- a/proxy_cache_vary.t
+++ b/proxy_cache_vary.t
@@ -23,7 +23,7 @@ select STDOUT; $| = 1;
 
 plan(skip_all => 'win32') if $^O eq 'MSWin32';
 
-my $t = Test::Nginx->new()->has(qw/http proxy cache gzip rewrite/)
+my $t = Test::Nginx->new()->has(qw/http proxy cache gzip rewrite/)->plan(42)
 	->write_file_expand('nginx.conf', <<'EOF');
 
 %%TEST_GLOBALS%%
@@ -103,12 +103,10 @@ EOF
 $t->write_file('asterisk', 'SEE-THIS');
 $t->write_file('complex', 'SEE-THIS');
 
-$t->try_run('no proxy_ignore_headers Vary')->plan(42);
+$t->run();
 
 ###############################################################################
 
-local $TODO = 'not yet' unless $t->has_version('1.7.7');
-
 like(get('/', 'gzip'), qr/MISS/ms, 'first request');
 like(get('/', 'gzip'), qr/HIT/ms, 'vary match cached');
 like(get('/', 'deflate'), qr/MISS/ms, 'vary mismatch');