Skip to content

Commit f06e780

Browse files
committed
does the stress test passes again when listening on 127.0.0.1?
1 parent ff987e1 commit f06e780

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

test/sequential/test-http-regr-gh-2928.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@ const response = Buffer.from('HTTP/1.1 200 OK\r\n\r\n');
1616
function execAndClose() {
1717
process.stdout.write('.');
1818

19-
const socket = net.connect({
20-
port: common.PORT,
21-
autoSelectFamily: false
22-
});
19+
const socket = net.connect(common.PORT);
2320
socket.on('end', socket.end);
2421
socket.on('data', function(chunk) {
2522
process.stdout.write('+');
@@ -35,7 +32,7 @@ const server = net.createServer(function(c) {
3532
server.close();
3633
c.end(response);
3734
c.resume();
38-
}).listen(common.PORT, execAndClose);
35+
}).listen(common.PORT, common.localhostIPv4, execAndClose);
3936

4037
process.on('exit', function() {
4138
assert.strictEqual(gotResponses, COUNT);

0 commit comments

Comments
 (0)