Mercurial > hg > nginx-tests
changeset 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 | 0b5ec15c62ed |
files | http_resolver_ipv4.t |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/http_resolver_ipv4.t +++ b/http_resolver_ipv4.t @@ -80,9 +80,11 @@ EOF ############################################################################### -is(get('/'), '127.0.0.1:8081, [::1]:8081', 'ipv4 ipv6'); -is(get('/ipv4'), '127.0.0.1:8081', 'ipv4 only'); -is(get('/ipv6'), '[::1]:8081', 'ipv6 only'); +my $p1 = port(8081); + +is(get('/'), "127.0.0.1:$p1, [::1]:$p1", 'ipv4 ipv6'); +is(get('/ipv4'), "127.0.0.1:$p1", 'ipv4 only'); +is(get('/ipv6'), "[::1]:$p1", 'ipv6 only'); ###############################################################################