Skip to content

Commit 32f1c7a

Browse files
committed
Tests: fixed http_resolver_ipv4.t with parallel tests.
Broken in 1786f49cca17.
1 parent 67735ff commit 32f1c7a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

http_resolver_ipv4.t

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,11 @@ $t->waitforfile($t->testdir . '/' . port(8980));
8080

8181
###############################################################################
8282

83-
is(get('/'), '127.0.0.1:8081, [::1]:8081', 'ipv4 ipv6');
84-
is(get('/ipv4'), '127.0.0.1:8081', 'ipv4 only');
85-
is(get('/ipv6'), '[::1]:8081', 'ipv6 only');
83+
my $p1 = port(8081);
84+
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');
8688

8789
###############################################################################
8890

0 commit comments

Comments
 (0)