Mercurial > hg > nginx-tests
comparison proxy_bind.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 | 882267679006 |
children |
comparison
equal
deleted
inserted
replaced
1250:b708848eb49a | 1251:766bcbb632ee |
---|---|
91 | 91 |
92 like(http_get('/'), qr/X-IP: 127.0.0.1/, 'bind'); | 92 like(http_get('/'), qr/X-IP: 127.0.0.1/, 'bind'); |
93 like(http_get('/inherit'), qr/X-IP: 127.0.0.2/, 'bind inherit'); | 93 like(http_get('/inherit'), qr/X-IP: 127.0.0.2/, 'bind inherit'); |
94 like(http_get('/off'), qr/X-IP: 127.0.0.1/, 'bind off'); | 94 like(http_get('/off'), qr/X-IP: 127.0.0.1/, 'bind off'); |
95 like(http_get('/var?b=127.0.0.2'), qr/X-IP: 127.0.0.2/, 'bind var'); | 95 like(http_get('/var?b=127.0.0.2'), qr/X-IP: 127.0.0.2/, 'bind var'); |
96 | |
97 TODO: { | |
98 local $TODO = 'not yet' unless $t->has_version('1.11.2'); | |
99 | |
100 like(http_get('/port'), qr/Port: (\d+)(?!\d).*Port: \1/s, 'bind port'); | 96 like(http_get('/port'), qr/Port: (\d+)(?!\d).*Port: \1/s, 'bind port'); |
101 | 97 |
102 } | |
103 | |
104 ############################################################################### | 98 ############################################################################### |