comparison stream_proxy_next_upstream.t @ 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 cd3e32d9997e
comparison
equal deleted inserted replaced
553:e47cd1b95997 554:4cc65166509e
22 ############################################################################### 22 ###############################################################################
23 23
24 select STDERR; $| = 1; 24 select STDERR; $| = 1;
25 select STDOUT; $| = 1; 25 select STDOUT; $| = 1;
26 26
27 my $t = Test::Nginx->new()->has(qw/stream/); 27 my $t = Test::Nginx->new()->has(qw/stream/)->plan(3);
28 28
29 $t->write_file_expand('nginx.conf', <<'EOF'); 29 $t->write_file_expand('nginx.conf', <<'EOF');
30 30
31 %%TEST_GLOBALS%% 31 %%TEST_GLOBALS%%
32 32
65 } 65 }
66 66
67 EOF 67 EOF
68 68
69 $t->run_daemon(\&stream_daemon); 69 $t->run_daemon(\&stream_daemon);
70 $t->try_run('no proxy_next_upstream')->plan(3); 70 $t->run()->waitforsocket('127.0.0.1:8089');
71
72 $t->waitforsocket('127.0.0.1:8089');
73 71
74 ############################################################################### 72 ###############################################################################
75 73
76 is(stream_get('.', '127.0.0.1:8081'), '', 'next upstream off'); 74 is(stream_get('.', '127.0.0.1:8081'), '', 'next upstream off');
77 is(stream_get('.', '127.0.0.1:8082'), 'SEE-THIS', 'next upstream on'); 75 is(stream_get('.', '127.0.0.1:8082'), 'SEE-THIS', 'next upstream on');