Skip to content

Commit 0165ba6

Browse files
fix: removed res.end
1 parent bc48ffd commit 0165ba6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/parallel/test-domain-multi.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,8 @@ const server = http.createServer((req, res) => {
4747
b.on('error', common.mustCall((er) => {
4848
if (res) {
4949
// Introduce an error on the client by writing unexpected data.
50-
// The client is now expecting a chunk header so any letter will
51-
// have the parser throw an error.
50+
// The client is now expecting a chunk header so any letter will have the parser throw an error.
5251
res.socket.write('H');
53-
res.end('An error occurred');
5452
}
5553
// res.writeHead(500), res.destroy, etc.
5654
server.close();

0 commit comments

Comments
 (0)