summaryrefslogtreecommitdiff
path: root/test/parallel/test-http-information-processing.js
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2018-09-12 21:08:53 -0700
committerRich Trott <rtrott@gmail.com>2018-09-16 20:37:34 -0700
commit8eb1130854c1e9cbf077f859b0f442d1e6852ba1 (patch)
tree250dec376ec77ccff651c26c4acee5948fd97920 /test/parallel/test-http-information-processing.js
parent141daf10c834e5e368e9479ab7a537fb487013d4 (diff)
downloadandroid-node-v8-8eb1130854c1e9cbf077f859b0f442d1e6852ba1.tar.gz
android-node-v8-8eb1130854c1e9cbf077f859b0f442d1e6852ba1.tar.bz2
android-node-v8-8eb1130854c1e9cbf077f859b0f442d1e6852ba1.zip
test: remove string literal message from assertion
Remove string literal from assert.strictEqual message to improve output of AssertionError. PR-URL: https://github.com/nodejs/node/pull/22849 Reviewed-By: Teddy Katz <teddy.katz@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'test/parallel/test-http-information-processing.js')
-rw-r--r--test/parallel/test-http-information-processing.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-http-information-processing.js b/test/parallel/test-http-information-processing.js
index af589477f0..43d1bdafdf 100644
--- a/test/parallel/test-http-information-processing.js
+++ b/test/parallel/test-http-information-processing.js
@@ -36,8 +36,8 @@ server.listen(0, function() {
});
req.on('response', function(res) {
- assert.strictEqual(countdown.remaining, 1,
- 'Full response received before all 102 Processing');
+ // Check that all 102 Processing received before full response received.
+ assert.strictEqual(countdown.remaining, 1);
assert.strictEqual(200, res.statusCode,
`Final status code was ${res.statusCode}, not 200.`);
res.setEncoding('utf8');