We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff987e1 commit f06e780Copy full SHA for f06e780
test/sequential/test-http-regr-gh-2928.js
@@ -16,10 +16,7 @@ const response = Buffer.from('HTTP/1.1 200 OK\r\n\r\n');
16
function execAndClose() {
17
process.stdout.write('.');
18
19
- const socket = net.connect({
20
- port: common.PORT,
21
- autoSelectFamily: false
22
- });
+ const socket = net.connect(common.PORT);
23
socket.on('end', socket.end);
24
socket.on('data', function(chunk) {
25
process.stdout.write('+');
@@ -35,7 +32,7 @@ const server = net.createServer(function(c) {
35
32
server.close();
36
33
c.end(response);
37
34
c.resume();
38
-}).listen(common.PORT, execAndClose);
+}).listen(common.PORT, common.localhostIPv4, execAndClose);
39
40
process.on('exit', function() {
41
assert.strictEqual(gotResponses, COUNT);
0 commit comments