Skip to content
Browse files

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: #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 <>
  • Loading branch information
ForrestWeiswolf authored and trivikr committed Apr 3, 2018
1 parent b06f686 commit 14310b5c1fa1e6a65fe763494b24ac1e9bffdaa0
Showing with 3 additions and 2 deletions.
  1. +3 −2 test/parallel/test-http-destroyed-socket-write2.js
@@ -62,12 +62,13 @@ server.listen(0, function() {

// Write to a torn down client should RESET or ABORT
'Write to a torn down client should RESET or ABORT');

assert.strictEqual(req.output.length, 0);
assert.strictEqual(req.outputEncodings.length, 0);

0 comments on commit 14310b5

Please sign in to comment.
You can’t perform that action at this time.