Mercurial > hg > nginx-tests
comparison stream_udp_proxy_requests.t @ 1535:144c6ce732e4
Tests: removed TODO and try_run() checks for legacy versions.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Mon, 02 Dec 2019 14:56:37 +0300 |
parents | 9242811bf22b |
children | f3ba4c74de31 |
comparison
equal
deleted
inserted
replaced
1534:96fb3513345b | 1535:144c6ce732e4 |
---|---|
21 ############################################################################### | 21 ############################################################################### |
22 | 22 |
23 select STDERR; $| = 1; | 23 select STDERR; $| = 1; |
24 select STDOUT; $| = 1; | 24 select STDOUT; $| = 1; |
25 | 25 |
26 my $t = Test::Nginx->new()->has(qw/stream udp/) | 26 my $t = Test::Nginx->new()->has(qw/stream udp/)->plan(26) |
27 ->write_file_expand('nginx.conf', <<'EOF'); | 27 ->write_file_expand('nginx.conf', <<'EOF'); |
28 | 28 |
29 %%TEST_GLOBALS%% | 29 %%TEST_GLOBALS%% |
30 | 30 |
31 daemon off; | 31 daemon off; |
85 EOF | 85 EOF |
86 | 86 |
87 | 87 |
88 $t->run_daemon(\&udp_daemon, $t, port(8990)); | 88 $t->run_daemon(\&udp_daemon, $t, port(8990)); |
89 $t->run_daemon(\&udp_daemon, $t, port(8991)); | 89 $t->run_daemon(\&udp_daemon, $t, port(8991)); |
90 $t->try_run('no proxy_requests')->plan(26); | 90 $t->run(); |
91 | 91 |
92 $t->waitforfile($t->testdir . '/' . port(8990)); | 92 $t->waitforfile($t->testdir . '/' . port(8990)); |
93 $t->waitforfile($t->testdir . '/' . port(8991)); | 93 $t->waitforfile($t->testdir . '/' . port(8991)); |
94 | 94 |
95 ############################################################################### | 95 ############################################################################### |