Skip to content

Commit 46569d6

Browse files
ForrestWeiswolftargos
authored andcommitted
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 <[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]>
1 parent e1f44a6 commit 46569d6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/parallel/test-http-destroyed-socket-write2.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,13 @@ server.listen(0, function() {
6262
break;
6363

6464
default:
65+
// Write to a torn down client should RESET or ABORT
6566
assert.strictEqual(er.code,
66-
'ECONNRESET',
67-
'Write to a torn down client should RESET or ABORT');
67+
'ECONNRESET');
6868
break;
6969
}
7070

71+
7172
assert.strictEqual(req.output.length, 0);
7273
assert.strictEqual(req.outputEncodings.length, 0);
7374
server.close();

0 commit comments

Comments
 (0)