Skip to content

Commit

Permalink
does the stress test passes again when listening on 127.0.0.1?
Browse files Browse the repository at this point in the history
  • Loading branch information
lpinca committed Sep 10, 2023
1 parent ff987e1 commit f06e780
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions test/sequential/test-http-regr-gh-2928.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ const response = Buffer.from('HTTP/1.1 200 OK\r\n\r\n');
function execAndClose() {
process.stdout.write('.');

const socket = net.connect({
port: common.PORT,
autoSelectFamily: false
});
const socket = net.connect(common.PORT);
socket.on('end', socket.end);
socket.on('data', function(chunk) {
process.stdout.write('+');
Expand All @@ -35,7 +32,7 @@ const server = net.createServer(function(c) {
server.close();
c.end(response);
c.resume();
}).listen(common.PORT, execAndClose);
}).listen(common.PORT, common.localhostIPv4, execAndClose);

process.on('exit', function() {
assert.strictEqual(gotResponses, COUNT);
Expand Down

0 comments on commit f06e780

Please sign in to comment.