comparison upstream_hash.t @ 1251:766bcbb632ee

Tests: removed TODO and try_run() checks for legacy versions.
author Sergey Kandaurov <pluknet@nginx.com>
date Fri, 24 Nov 2017 19:58:40 +0300
parents 38ed3dda3279
children 06fbf6269f38
comparison
equal deleted inserted replaced
1250:b708848eb49a 1251:766bcbb632ee
196 @res = grep { $_ == $p1 } iter('/cbad', 20); 196 @res = grep { $_ == $p1 } iter('/cbad', 20);
197 is(@res, 20, 'all hashed peers - bad consistent'); 197 is(@res, 20, 'all hashed peers - bad consistent');
198 198
199 like(http_get('/busy'), qr/X-IP: 127.0.0.1:$p1, bad/, 199 like(http_get('/busy'), qr/X-IP: 127.0.0.1:$p1, bad/,
200 'upstream name - busy'); 200 'upstream name - busy');
201
202 TODO: {
203 local $TODO = 'not yet' unless $t->has_version('1.11.5');
204
205 like(http_get('/cbusy'), qr/X-IP: 127.0.0.1:$p1, cbad/, 201 like(http_get('/cbusy'), qr/X-IP: 127.0.0.1:$p1, cbad/,
206 'upstream name - busy consistent'); 202 'upstream name - busy consistent');
207
208 }
209 203
210 ############################################################################### 204 ###############################################################################
211 205
212 # Returns true if two arrays follow consistency, i.e., they may only differ 206 # Returns true if two arrays follow consistency, i.e., they may only differ
213 # by @args present in $p, but absent in $p2, for the same indices. 207 # by @args present in $p, but absent in $p2, for the same indices.