Mercurial > hg > nginx-tests
comparison stream_limit_rate.t @ 866:5048b8f0fedd
Tests: removed try_run() checks for legacy versions.
author | Andrey Zelenkov <zelenkov@nginx.com> |
---|---|
date | Thu, 10 Mar 2016 19:58:01 +0300 |
parents | 77359b849cd5 |
children | b1fa8e0cc27b |
comparison
equal
deleted
inserted
replaced
865:f8f8304c8832 | 866:5048b8f0fedd |
---|---|
23 ############################################################################### | 23 ############################################################################### |
24 | 24 |
25 select STDERR; $| = 1; | 25 select STDERR; $| = 1; |
26 select STDOUT; $| = 1; | 26 select STDOUT; $| = 1; |
27 | 27 |
28 my $t = Test::Nginx->new()->has(qw/stream/) | 28 my $t = Test::Nginx->new()->has(qw/stream/)->plan(8) |
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; |
84 | 84 |
85 EOF | 85 EOF |
86 | 86 |
87 $t->run_daemon(\&stream_daemon, 8080); | 87 $t->run_daemon(\&stream_daemon, 8080); |
88 $t->run_daemon(\&stream_daemon, 8090); | 88 $t->run_daemon(\&stream_daemon, 8090); |
89 | 89 $t->run(); |
90 $t->try_run('no proxy_download_rate and/or proxy_upload_rate')->plan(8); | |
91 | 90 |
92 $t->waitforsocket('127.0.0.1:8080'); | 91 $t->waitforsocket('127.0.0.1:8080'); |
93 $t->waitforsocket('127.0.0.1:8090'); | 92 $t->waitforsocket('127.0.0.1:8090'); |
94 | 93 |
95 ############################################################################### | 94 ############################################################################### |