Mercurial > hg > nginx-tests
changeset 1497:40e5f2a0a238
Tests: upstream_ip_hash_ipv6.t startup fixes.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Tue, 06 Aug 2019 20:45:56 +0300 |
parents | e1eb3432487b |
children | 63a74974a0e9 |
files | upstream_ip_hash_ipv6.t |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/upstream_ip_hash_ipv6.t Thu Aug 01 14:22:46 2019 +0300 +++ b/upstream_ip_hash_ipv6.t Tue Aug 06 20:45:56 2019 +0300 @@ -26,7 +26,7 @@ select STDOUT; $| = 1; my $t = Test::Nginx->new()->has(qw/http proxy upstream_ip_hash realip unix/) - ->write_file_expand('nginx.conf', <<'EOF')->run(); + ->write_file_expand('nginx.conf', <<'EOF'); %%TEST_GLOBALS%% @@ -95,10 +95,12 @@ EOF +$t->try_run('no inet6 support'); + plan(skip_all => 'no 127.0.0.1 on host') if http_get('/') !~ /X-IP: 127.0.0.1/m; -$t->try_run('no inet6 support')->plan(4); +$t->plan(4); ###############################################################################