Mercurial > hg > nginx-tests
comparison stream_udp_upstream_least_conn.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 | 3fc6817cd84a |
comparison
equal
deleted
inserted
replaced
1019:41139d6f8b7b | 1020:196d33c2bb45 |
---|---|
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 stream_upstream_least_conn udp/) | 26 my $t = Test::Nginx->new()->has(qw/stream stream_upstream_least_conn udp/) |
27 ->write_file_expand('nginx.conf', <<'EOF'); | 27 ->plan(2)->write_file_expand('nginx.conf', <<'EOF'); |
28 | 28 |
29 %%TEST_GLOBALS%% | 29 %%TEST_GLOBALS%% |
30 | 30 |
31 daemon off; | 31 daemon off; |
32 | 32 |
51 | 51 |
52 EOF | 52 EOF |
53 | 53 |
54 $t->run_daemon(\&udp_daemon, port(8081), $t); | 54 $t->run_daemon(\&udp_daemon, port(8081), $t); |
55 $t->run_daemon(\&udp_daemon, port(8082), $t); | 55 $t->run_daemon(\&udp_daemon, port(8082), $t); |
56 $t->try_run('no stream udp')->plan(2); | 56 $t->run(); |
57 | 57 |
58 $t->waitforfile($t->testdir . '/' . port(8081)); | 58 $t->waitforfile($t->testdir . '/' . port(8081)); |
59 $t->waitforfile($t->testdir . '/' . port(8082)); | 59 $t->waitforfile($t->testdir . '/' . port(8082)); |
60 | 60 |
61 ############################################################################### | 61 ############################################################################### |