Mercurial > hg > nginx-tests
comparison upstream_ip_hash_ipv6.t @ 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 | f7f387086278 |
children |
comparison
equal
deleted
inserted
replaced
1496:e1eb3432487b | 1497:40e5f2a0a238 |
---|---|
24 | 24 |
25 select STDERR; $| = 1; | 25 select STDERR; $| = 1; |
26 select STDOUT; $| = 1; | 26 select STDOUT; $| = 1; |
27 | 27 |
28 my $t = Test::Nginx->new()->has(qw/http proxy upstream_ip_hash realip unix/) | 28 my $t = Test::Nginx->new()->has(qw/http proxy upstream_ip_hash realip unix/) |
29 ->write_file_expand('nginx.conf', <<'EOF')->run(); | 29 ->write_file_expand('nginx.conf', <<'EOF'); |
30 | 30 |
31 %%TEST_GLOBALS%% | 31 %%TEST_GLOBALS%% |
32 | 32 |
33 daemon off; | 33 daemon off; |
34 | 34 |
93 } | 93 } |
94 } | 94 } |
95 | 95 |
96 EOF | 96 EOF |
97 | 97 |
98 $t->try_run('no inet6 support'); | |
99 | |
98 plan(skip_all => 'no 127.0.0.1 on host') | 100 plan(skip_all => 'no 127.0.0.1 on host') |
99 if http_get('/') !~ /X-IP: 127.0.0.1/m; | 101 if http_get('/') !~ /X-IP: 127.0.0.1/m; |
100 | 102 |
101 $t->try_run('no inet6 support')->plan(4); | 103 $t->plan(4); |
102 | 104 |
103 ############################################################################### | 105 ############################################################################### |
104 | 106 |
105 my @ports = my ($port1, $port2) = (port(8081), port(8082)); | 107 my @ports = my ($port1, $port2) = (port(8081), port(8082)); |
106 | 108 |