Skip to content

Commit 7ee438c

Browse files
treysisnodejs-github-bot
authored andcommitted
dns: test suite fix for CI node-test-commit-aix
PR-URL: #39987 Fixes: #31566 Refs: #6307 Refs: #20710 Refs: #38099 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Michael Dawson <[email protected]>
1 parent 7b0b1ec commit 7ee438c

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

test/parallel/test-net-writable.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,8 @@ const net = require('net');
66
const server = net.createServer(common.mustCall(function(s) {
77
server.close();
88
s.end();
9-
})).listen(0, 'localhost', common.mustCall(function() {
10-
const socket = net.connect(this.address().port, common.hasIPv6 ?
11-
'::1' :
12-
'127.0.0.1');
9+
})).listen(0, '127.0.0.1', common.mustCall(function() {
10+
const socket = net.connect(this.address().port, '127.0.0.1');
1311
socket.on('end', common.mustCall(() => {
1412
assert.strictEqual(socket.writable, true);
1513
socket.write('hello world');

test/sequential/test-https-connect-localport.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ const assert = require('assert');
1717
res.end();
1818
}));
1919

20-
server.listen(0, 'localhost', common.mustCall(() => {
20+
server.listen(0, '127.0.0.1', common.mustCall(() => {
2121
const port = server.address().port;
2222
const req = https.get({
2323
host: 'localhost',
2424
pathname: '/',
2525
port,
26-
family: common.hasIPv6 ? 6 : 4,
26+
family: 4,
2727
localPort: common.PORT,
2828
rejectUnauthorized: false,
2929
}, common.mustCall(() => {

0 commit comments

Comments
 (0)