Skip to content

Commit

Permalink
fix: removed res.end
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-ippolito committed Nov 23, 2022
1 parent 0721653 commit 0ccb0c2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/parallel/test-domain-multi.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,8 @@ const server = http.createServer((req, res) => {
b.on('error', common.mustCall((er) => {
if (res) {
// Introduce an error on the client by writing unexpected data.
// The client is now expecting a chunk header so any letter will
// have the parser throw an error.
// The client is now expecting a chunk header so any letter will have the parser throw an error.
res.socket.write('H');
res.end('An error occurred');
}
// res.writeHead(500), res.destroy, etc.
server.close();
Expand Down

0 comments on commit 0ccb0c2

Please sign in to comment.