diff --git a/test/parallel/test-http-destroyed-socket-write2.js b/test/parallel/test-http-destroyed-socket-write2.js index 99a0c4663a8ba3..48899415e37a4f 100644 --- a/test/parallel/test-http-destroyed-socket-write2.js +++ b/test/parallel/test-http-destroyed-socket-write2.js @@ -62,12 +62,13 @@ server.listen(0, function() { break; default: + // Write to a torn down client should RESET or ABORT assert.strictEqual(er.code, - 'ECONNRESET', - 'Write to a torn down client should RESET or ABORT'); + 'ECONNRESET'); break; } + assert.strictEqual(req.output.length, 0); assert.strictEqual(req.outputEncodings.length, 0); server.close();