Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c132e9c

Browse filesBrowse files
bnoordhuisFishrock123
authored andcommitted
test: listen on and connect to 127.0.0.1
Avoid transient DNS issues in test sequential/test-net-GH-5504 by using the IP address instead of the 'localhost' host name. Fixes: #6611 PR-URL: #7524 Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
1 parent 6da49ac commit c132e9c
Copy full SHA for c132e9c

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Collapse file

‎test/sequential/test-net-GH-5504.js‎

Copy file name to clipboardExpand all lines: test/sequential/test-net-GH-5504.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ function server() {
2929
console.error('_socketEnd');
3030
});
3131
socket.write(content);
32-
}).listen(common.PORT, function() {
32+
}).listen(common.PORT, common.localhostIPv4, function() {
3333
console.log('listening');
3434
});
3535
}
3636

3737
function client() {
3838
var net = require('net');
3939
var client = net.connect({
40-
host: 'localhost',
40+
host: common.localhostIPv4,
4141
port: common.PORT
4242
}, function() {
4343
client.destroy();

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.