Skip to content

Commit 1a0f19a

Browse files
committed
test: fix async-hooks tests
The 'test-graph.tcp' and 'test-tcpwrap' tests are using '::' as server address. This is mapped to localhost on Linux, but fails on Windows. PR-URL: #14865 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Refael Ackermann <[email protected]>
1 parent ca9b3f2 commit 1a0f19a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/async-hooks/test-graph.tcp.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const server = net
1717

1818
server.listen(common.PORT);
1919

20-
net.connect({ port: server.address().port, host: server.address().address },
20+
net.connect({ port: server.address().port, host: '::1' },
2121
common.mustCall(onconnected));
2222

2323
function onlistening() {}

test/async-hooks/test-tcpwrap.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const server = net
3838
// Calling net.connect creates another TCPWRAP synchronously
3939
{
4040
net.connect(
41-
{ port: server.address().port, host: server.address().address },
41+
{ port: server.address().port, host: '::1' },
4242
common.mustCall(onconnected));
4343
const tcps = hooks.activitiesOfTypes('TCPWRAP');
4444
assert.strictEqual(tcps.length, 2);

0 commit comments

Comments
 (0)