Mercurial > hg > nginx-tests
comparison http_resolver_ipv4.t @ 1944:c287864444f8
Tests: fixed http_resolver_ipv4.t with parallel tests.
Broken in 1786f49cca17.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Mon, 22 Jan 2024 23:17:24 +0400 |
parents | 1786f49cca17 |
children |
comparison
equal
deleted
inserted
replaced
1943:1786f49cca17 | 1944:c287864444f8 |
---|---|
78 $t->run_daemon(\&dns_daemon, port(8980), $t); | 78 $t->run_daemon(\&dns_daemon, port(8980), $t); |
79 $t->waitforfile($t->testdir . '/' . port(8980)); | 79 $t->waitforfile($t->testdir . '/' . port(8980)); |
80 | 80 |
81 ############################################################################### | 81 ############################################################################### |
82 | 82 |
83 is(get('/'), '127.0.0.1:8081, [::1]:8081', 'ipv4 ipv6'); | 83 my $p1 = port(8081); |
84 is(get('/ipv4'), '127.0.0.1:8081', 'ipv4 only'); | 84 |
85 is(get('/ipv6'), '[::1]:8081', 'ipv6 only'); | 85 is(get('/'), "127.0.0.1:$p1, [::1]:$p1", 'ipv4 ipv6'); |
86 is(get('/ipv4'), "127.0.0.1:$p1", 'ipv4 only'); | |
87 is(get('/ipv6'), "[::1]:$p1", 'ipv6 only'); | |
86 | 88 |
87 ############################################################################### | 89 ############################################################################### |
88 | 90 |
89 sub get { | 91 sub get { |
90 my ($uri) = @_; | 92 my ($uri) = @_; |