Mercurial > hg > nginx-tests
changeset 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 | f8f8304c8832 |
children | 89898b20f258 |
files | stream_limit_conn.t stream_limit_rate.t |
diffstat | 2 files changed, 4 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/stream_limit_conn.t Thu Mar 10 18:51:23 2016 +0300 +++ b/stream_limit_conn.t Thu Mar 10 19:58:01 2016 +0300 @@ -23,7 +23,7 @@ select STDOUT; $| = 1; my $t = Test::Nginx->new()->has(qw/http stream stream_limit_conn shmem/) - ->write_file_expand('nginx.conf', <<'EOF'); + ->plan(8)->write_file_expand('nginx.conf', <<'EOF'); %%TEST_GLOBALS%% @@ -81,7 +81,7 @@ EOF $t->write_file('index.html', ''); -$t->try_run('no stream limit_conn')->plan(8); +$t->run(); ###############################################################################
--- a/stream_limit_rate.t Thu Mar 10 18:51:23 2016 +0300 +++ b/stream_limit_rate.t Thu Mar 10 19:58:01 2016 +0300 @@ -25,7 +25,7 @@ select STDERR; $| = 1; select STDOUT; $| = 1; -my $t = Test::Nginx->new()->has(qw/stream/) +my $t = Test::Nginx->new()->has(qw/stream/)->plan(8) ->write_file_expand('nginx.conf', <<'EOF'); %%TEST_GLOBALS%% @@ -86,8 +86,7 @@ $t->run_daemon(\&stream_daemon, 8080); $t->run_daemon(\&stream_daemon, 8090); - -$t->try_run('no proxy_download_rate and/or proxy_upload_rate')->plan(8); +$t->run(); $t->waitforsocket('127.0.0.1:8080'); $t->waitforsocket('127.0.0.1:8090');