Mercurial > hg > nginx-tests
comparison proxy_limit_rate.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 | c2481c6b748f |
children | cb35a9ec4428 |
comparison
equal
deleted
inserted
replaced
567:22bade4c7e12 | 568:907e89fba9c3 |
---|---|
20 ############################################################################### | 20 ############################################################################### |
21 | 21 |
22 select STDERR; $| = 1; | 22 select STDERR; $| = 1; |
23 select STDOUT; $| = 1; | 23 select STDOUT; $| = 1; |
24 | 24 |
25 my $t = Test::Nginx->new()->has(qw/http proxy/); | 25 my $t = Test::Nginx->new()->has(qw/http proxy/)->plan(2); |
26 | 26 |
27 $t->write_file_expand('nginx.conf', <<'EOF'); | 27 $t->write_file_expand('nginx.conf', <<'EOF'); |
28 | 28 |
29 %%TEST_GLOBALS%% | 29 %%TEST_GLOBALS%% |
30 | 30 |
52 } | 52 } |
53 | 53 |
54 EOF | 54 EOF |
55 | 55 |
56 $t->write_file('data', 'X' x 40000); | 56 $t->write_file('data', 'X' x 40000); |
57 $t->try_run('no proxy_limit_rate')->plan(2); | 57 $t->run(); |
58 | 58 |
59 ############################################################################### | 59 ############################################################################### |
60 | 60 |
61 my $r = http_get('/'); | 61 my $r = http_get('/'); |
62 | 62 |