diff --git a/test/parallel/test-http-extra-response.js b/test/parallel/test-http-extra-response.js index bfd9b59462c685..fc398b9175402b 100644 --- a/test/parallel/test-http-extra-response.js +++ b/test/parallel/test-http-extra-response.js @@ -37,6 +37,10 @@ var server = net.createServer(function(socket) { socket.end(fullResponse); } }); + + socket.on('error', function(err) { + assert.equal(err.code, 'ECONNRESET'); + }); });