Skip to content

Commit 086570e

Browse files
ForrestWeiswolfBethGriggs
authored andcommittedDec 4, 2018
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 <riclau@uk.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent 6d8c65e commit 086570e

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)
Please sign in to comment.