diff options
author | Forrest Wolf <Forrest.Weiswolf@gmail.com> | 2018-03-27 10:34:48 -0400 |
---|---|---|
committer | Trivikram Kamat <16024985+trivikr@users.noreply.github.com> | 2018-04-03 16:00:49 -0700 |
commit | 14310b5c1fa1e6a65fe763494b24ac1e9bffdaa0 (patch) | |
tree | 315402b42df63024dd91631f790b1748bd7cce35 /test | |
parent | b06f686f8878027ccbd08b36b546378ffc0addfd (diff) | |
download | android-node-v8-14310b5c1fa1e6a65fe763494b24ac1e9bffdaa0.tar.gz android-node-v8-14310b5c1fa1e6a65fe763494b24ac1e9bffdaa0.tar.bz2 android-node-v8-14310b5c1fa1e6a65fe763494b24ac1e9bffdaa0.zip |
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: https://github.com/nodejs/node/pull/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>
Diffstat (limited to 'test')
-rw-r--r-- | test/parallel/test-http-destroyed-socket-write2.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/parallel/test-http-destroyed-socket-write2.js b/test/parallel/test-http-destroyed-socket-write2.js index 99a0c4663a..48899415e3 100644 --- a/test/parallel/test-http-destroyed-socket-write2.js +++ b/test/parallel/test-http-destroyed-socket-write2.js @@ -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(); |