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 22, 2022
1 parent 19684f8 commit 7f960e7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/parallel/test-domain-multi.js
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 7f960e7

Please sign in to comment.