Mercurial > hg > nginx-tests
comparison stream_udp_upstream.t @ 1165:ba26845f53ff
Tests: reduced the number of UDP streams in stream_udp_upstream.t.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Thu, 20 Apr 2017 16:03:05 +0300 |
parents | e74a9342eb96 |
children | e4974af3fb12 |
comparison
equal
deleted
inserted
replaced
1164:cdd44ff602db | 1165:ba26845f53ff |
---|---|
95 | 95 |
96 ############################################################################### | 96 ############################################################################### |
97 | 97 |
98 my @ports = my ($port4, $port5, $port6) = (port(8084), port(8085), port(8086)); | 98 my @ports = my ($port4, $port5, $port6) = (port(8084), port(8085), port(8086)); |
99 | 99 |
100 is(many(30, port(8080)), "$port4: 15, $port5: 15", 'balanced'); | 100 is(many(10, port(8080)), "$port4: 5, $port5: 5", 'balanced'); |
101 is(many(30, port(8081)), "$port4: 15, $port5: 15", 'failures'); | 101 is(many(10, port(8081)), "$port4: 5, $port5: 5", 'failures'); |
102 is(many(30, port(8082)), "$port4: 10, $port5: 20", 'weight'); | 102 is(many(9, port(8082)), "$port4: 3, $port5: 6", 'weight'); |
103 is(many(30, port(8083)), "$port4: 30", 'backup'); | 103 is(many(10, port(8083)), "$port4: 10", 'backup'); |
104 | 104 |
105 $t->stop(); | 105 $t->stop(); |
106 | 106 |
107 like($t->read_file('u.log'), qr/127.0.0.1:$port6, 127.0.0.1:$port4!1, 1!0, 4/, | 107 like($t->read_file('u.log'), qr/127.0.0.1:$port6, 127.0.0.1:$port4!1, 1!0, 4/, |
108 'per-upstream variables'); | 108 'per-upstream variables'); |