Mercurial > hg > nginx-tests
comparison proxy_force_ranges.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 | c8e790dcbe19 |
children | 2cd00179f4b2 |
comparison
equal
deleted
inserted
replaced
567:22bade4c7e12 | 568:907e89fba9c3 |
---|---|
23 select STDERR; $| = 1; | 23 select STDERR; $| = 1; |
24 select STDOUT; $| = 1; | 24 select STDOUT; $| = 1; |
25 | 25 |
26 plan(skip_all => 'win32') if $^O eq 'MSWin32'; | 26 plan(skip_all => 'win32') if $^O eq 'MSWin32'; |
27 | 27 |
28 my $t = Test::Nginx->new()->has(qw/http proxy cache/) | 28 my $t = Test::Nginx->new()->has(qw/http proxy cache/)->plan(5) |
29 ->write_file_expand('nginx.conf', <<'EOF'); | 29 ->write_file_expand('nginx.conf', <<'EOF'); |
30 | 30 |
31 %%TEST_GLOBALS%% | 31 %%TEST_GLOBALS%% |
32 | 32 |
33 daemon off; | 33 daemon off; |
69 } | 69 } |
70 | 70 |
71 EOF | 71 EOF |
72 | 72 |
73 $t->write_file('t.html', 'SEE-THIS'); | 73 $t->write_file('t.html', 'SEE-THIS'); |
74 $t->try_run('no proxy_force_ranges')->plan(5); | 74 $t->run(); |
75 | 75 |
76 ############################################################################### | 76 ############################################################################### |
77 | 77 |
78 # serving range requests requires Accept-Ranges by default | 78 # serving range requests requires Accept-Ranges by default |
79 | 79 |