From 086570e4e1476b4c9ccf663a6cd6499964580533 Mon Sep 17 00:00:00 2001 From: Forrest Wolf Date: Tue, 27 Mar 2018 10:34:48 -0400 Subject: [PATCH] test: remove third argument from call to assert.strictEqual() Remove the message argument from call to assert.strictEqual so that the AssertionError will report the value of er.code, and add a comment with the message. PR-URL: https://github.com/nodejs/node/pull/19659 Reviewed-By: Richard Lau Reviewed-By: James M Snell Reviewed-By: Trivikram Kamat Reviewed-By: Colin Ihrig Reviewed-By: Tiancheng "Timothy" Gu Reviewed-By: Rich Trott --- test/parallel/test-http-destroyed-socket-write2.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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();