# HG changeset patch # User Andrey Zelenkov # Date 1457629081 -10800 # Node ID 5048b8f0fedd09974b7f520462e6a85662031389 # Parent f8f8304c8832259d6f2a0027fce627844fa34431 Tests: removed try_run() checks for legacy versions. diff --git a/stream_limit_conn.t b/stream_limit_conn.t --- a/stream_limit_conn.t +++ b/stream_limit_conn.t @@ -23,7 +23,7 @@ select STDERR; $| = 1; 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 @@ http { EOF $t->write_file('index.html', ''); -$t->try_run('no stream limit_conn')->plan(8); +$t->run(); ############################################################################### diff --git a/stream_limit_rate.t b/stream_limit_rate.t --- a/stream_limit_rate.t +++ b/stream_limit_rate.t @@ -25,7 +25,7 @@ use Test::Nginx::Stream qw/ stream /; 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 @@ EOF $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');