changeset 554:4cc65166509e

Tests: removed superfluous try_run() check.
author Sergey Kandaurov <pluknet@nginx.com>
date Wed, 22 Apr 2015 14:38:24 +0300
parents e47cd1b95997
children ba6cc90e3d67
files stream_proxy_next_upstream.t
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/stream_proxy_next_upstream.t
+++ b/stream_proxy_next_upstream.t
@@ -24,7 +24,7 @@ use Test::Nginx;
 select STDERR; $| = 1;
 select STDOUT; $| = 1;
 
-my $t = Test::Nginx->new()->has(qw/stream/);
+my $t = Test::Nginx->new()->has(qw/stream/)->plan(3);
 
 $t->write_file_expand('nginx.conf', <<'EOF');
 
@@ -67,9 +67,7 @@ stream {
 EOF
 
 $t->run_daemon(\&stream_daemon);
-$t->try_run('no proxy_next_upstream')->plan(3);
-
-$t->waitforsocket('127.0.0.1:8089');
+$t->run()->waitforsocket('127.0.0.1:8089');
 
 ###############################################################################