Skip to content

Commit

Permalink
test: remove third argument from call to assert.strictEqual()
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
  • Loading branch information
ForrestWeiswolf authored and BethGriggs committed Dec 4, 2018
1 parent 6d8c65e commit 086570e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/parallel/test-http-destroyed-socket-write2.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 086570e

Please sign in to comment.