Mercurial > hg > nginx-tests
diff realip_remote_port.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 | e19d41512e22 |
children |
line wrap: on
line diff
--- a/realip_remote_port.t +++ b/realip_remote_port.t @@ -53,7 +53,7 @@ EOF $t->write_file('index.html', ''); $t->write_file('1', ''); -$t->try_run('no realip_remote_port'); +$t->run(); plan(skip_all => 'no 127.0.0.1 on host') if http_get('/') !~ /X-IP: 127.0.0.1/m; @@ -71,14 +71,9 @@ like($data, qr/X-Real-Port: $sp/, 'reque ($sp, $data) = http_sp_xff('/1', '127.0.0.1:123'); like($data, qr/X-Real-Port: $sp/, 'realip'); -TODO: { -local $TODO = 'not yet' unless $t->has_version('1.11.5'); - ($sp, $data) = http_sp_xff('/', '127.0.0.1:123'); like($data, qr/X-Real-Port: $sp/, 'realip redirect'); -} - ############################################################################### sub http_sp_get {