summaryrefslogtreecommitdiff
path: root/test/parallel/test-http-response-multi-content-length.js
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2017-01-19 11:18:51 -0500
committercjihrig <cjihrig@gmail.com>2017-01-23 09:45:58 -0500
commitaa0e4f38433cf2ca62fbb736c727cd65c99a96db (patch)
treef00b3c3027451f5aabf91aa9502b8bd450475cb4 /test/parallel/test-http-response-multi-content-length.js
parenta647d82f83ad5ddad5db7be2cc24c3d686121792 (diff)
downloadandroid-node-v8-aa0e4f38433cf2ca62fbb736c727cd65c99a96db.tar.gz
android-node-v8-aa0e4f38433cf2ca62fbb736c727cd65c99a96db.tar.bz2
android-node-v8-aa0e4f38433cf2ca62fbb736c727cd65c99a96db.zip
test: use common.fail() instead of assert(false)
PR-URL: https://github.com/nodejs/node/pull/10899 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Italo A. Casas <me@italoacasas.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to 'test/parallel/test-http-response-multi-content-length.js')
-rw-r--r--test/parallel/test-http-response-multi-content-length.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-http-response-multi-content-length.js b/test/parallel/test-http-response-multi-content-length.js
index f3dce20875..5d53f7dcd5 100644
--- a/test/parallel/test-http-response-multi-content-length.js
+++ b/test/parallel/test-http-response-multi-content-length.js
@@ -35,7 +35,7 @@ server.listen(0, common.mustCall(() => {
http.get(
{port: server.address().port, headers: {'x-num': n}},
(res) => {
- assert(false, 'client allowed multiple content-length headers.');
+ common.fail('client allowed multiple content-length headers.');
}
).on('error', common.mustCall((err) => {
assert(/^Parse Error/.test(err.message));