From f565bbb193c90a974ad1500b86047b834d58606d Mon Sep 17 00:00:00 2001 From: isurusiri Date: Mon, 16 Apr 2018 13:00:45 +0530 Subject: [PATCH] test: remove message from strictEqual assertions If values are not equals in strictEqual assertions, an AssertionError is thrown with a message property set equals to the value of the message parameter. If we pass a message, this message will be printed instead of the default message, which contains the value that is causing the error. Hence removed the value passed as the message in strictEqual assertions of test/parallel/test-http-response-readable.js PR-URL: https://github.com/nodejs/node/pull/20067 Reviewed-By: Colin Ihrig Reviewed-By: Ruben Bridgewater Reviewed-By: James M Snell Reviewed-By: Richard Lau Reviewed-By: Rich Trott Reviewed-By: Trivikram Kamat --- test/parallel/test-http-response-readable.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/parallel/test-http-response-readable.js b/test/parallel/test-http-response-readable.js index ce077320052..9ecfbc4ca93 100644 --- a/test/parallel/test-http-response-readable.js +++ b/test/parallel/test-http-response-readable.js @@ -31,10 +31,9 @@ const testServer = new http.Server(function(req, res) { testServer.listen(0, function() { http.get({ port: this.address().port }, function(res) { - assert.strictEqual(res.readable, true, 'res.readable initially true'); + assert.strictEqual(res.readable, true); res.on('end', function() { - assert.strictEqual(res.readable, false, - 'res.readable set to false after end'); + assert.strictEqual(res.readable, false); testServer.close(); }); res.resume();