comparison stream_udp_upstream.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 5bee71e1548f
children f3ba4c74de31
comparison
equal deleted inserted replaced
1534:96fb3513345b 1535:144c6ce732e4
93 93
94 my @ports = my ($port4, $port5) = (port(8984), port(8985)); 94 my @ports = my ($port4, $port5) = (port(8984), port(8985));
95 95
96 is(many(10, port(8980)), "$port4: 5, $port5: 5", 'balanced'); 96 is(many(10, port(8980)), "$port4: 5, $port5: 5", 'balanced');
97 97
98 TODO: {
99 local $TODO = 'not yet' unless $t->has_version('1.15.0');
100
101 is(dgram('127.0.0.1:' . port(8981))->io('.', read_timeout => 0.5), '', 98 is(dgram('127.0.0.1:' . port(8981))->io('.', read_timeout => 0.5), '',
102 'no next upstream for dgram'); 99 'no next upstream for dgram');
103
104 }
105 100
106 is(many(10, port(8981)), "$port4: 5, $port5: 5", 'failures'); 101 is(many(10, port(8981)), "$port4: 5, $port5: 5", 'failures');
107 102
108 is(many(9, port(8982)), "$port4: 3, $port5: 6", 'weight'); 103 is(many(9, port(8982)), "$port4: 3, $port5: 6", 'weight');
109 is(many(10, port(8983)), "$port4: 10", 'backup'); 104 is(many(10, port(8983)), "$port4: 10", 'backup');