Mercurial > hg > nginx-tests
comparison stream_udp_upstream.t @ 1020:196d33c2bb45
Tests: removed TODO and try_run() checks for legacy versions.
Also removed now unused spdy.t and shmem prerequisite.
author | Andrey Zelenkov <zelenkov@nginx.com> |
---|---|
date | Wed, 31 Aug 2016 18:21:07 +0300 |
parents | 882267679006 |
children | e74a9342eb96 |
comparison
equal
deleted
inserted
replaced
1019:41139d6f8b7b | 1020:196d33c2bb45 |
---|---|
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(4) |
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; |
82 | 82 |
83 EOF | 83 EOF |
84 | 84 |
85 $t->run_daemon(\&udp_daemon, port(8084), $t); | 85 $t->run_daemon(\&udp_daemon, port(8084), $t); |
86 $t->run_daemon(\&udp_daemon, port(8085), $t); | 86 $t->run_daemon(\&udp_daemon, port(8085), $t); |
87 $t->try_run('no stream udp')->plan(4); | 87 $t->run(); |
88 | 88 |
89 $t->waitforfile($t->testdir . '/' . port(8084)); | 89 $t->waitforfile($t->testdir . '/' . port(8084)); |
90 $t->waitforfile($t->testdir . '/' . port(8085)); | 90 $t->waitforfile($t->testdir . '/' . port(8085)); |
91 | 91 |
92 ############################################################################### | 92 ############################################################################### |