# HG changeset patch # User Sergey Kandaurov # Date 1565113556 -10800 # Node ID 40e5f2a0a238852670c6825ea53bc6ecfbb71f89 # Parent e1eb3432487b7decb61d81108ade1d11f244f072 Tests: upstream_ip_hash_ipv6.t startup fixes. diff --git a/upstream_ip_hash_ipv6.t b/upstream_ip_hash_ipv6.t --- a/upstream_ip_hash_ipv6.t +++ b/upstream_ip_hash_ipv6.t @@ -26,7 +26,7 @@ select STDERR; $| = 1; 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 @@ http { 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); ###############################################################################