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
+++ 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();
 
 ###############################################################################
 
--- 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');