From ff7f28c4f2b0a52fcfb47d237b040007e6e5d687 Mon Sep 17 00:00:00 2001 From: Arian Santrach Date: Fri, 30 Mar 2018 21:13:51 +0200 Subject: [PATCH] test: remove 3rd argument from assert.strictEqual If there is an AssertionError, the string literal is printed and not the value of `r`. For debugging purposes, it is good to know if `r` is false or null or something else. PR-URL: https://github.com/nodejs/node/pull/19707 Reviewed-By: Rich Trott Reviewed-By: Trivikram Kamat Reviewed-By: Colin Ihrig --- test/parallel/test-http-res-write-after-end.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/parallel/test-http-res-write-after-end.js b/test/parallel/test-http-res-write-after-end.js index 32c6cf2e082668..523a037bcb2b9f 100644 --- a/test/parallel/test-http-res-write-after-end.js +++ b/test/parallel/test-http-res-write-after-end.js @@ -33,7 +33,8 @@ const server = http.Server(common.mustCall(function(req, res) { res.end(); const r = res.write('This should raise an error.'); - assert.strictEqual(r, true, 'write after end should return true'); + // write after end should return true + assert.strictEqual(r, true); })); server.listen(0, function() {