Skip to content

Commit 59b6968

Browse files
Trotttargos
authored andcommittedSep 20, 2018
test: remove string literal message from assertion
Remove string literal from assert.strictEqual message to improve output of AssertionError. Backport-PR-URL: #22912 PR-URL: #22849 Reviewed-By: Teddy Katz <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent 266f1a9 commit 59b6968

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎test/parallel/test-http-information-processing.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ server.listen(0, function() {
3636
});
3737

3838
req.on('response', function(res) {
39-
assert.strictEqual(countdown.remaining, 1,
40-
'Full response received before all 102 Processing');
39+
// Check that all 102 Processing received before full response received.
40+
assert.strictEqual(countdown.remaining, 1);
4141
assert.strictEqual(200, res.statusCode,
4242
`Final status code was ${res.statusCode}, not 200.`);
4343
res.setEncoding('utf8');

0 commit comments

Comments
 (0)
Please sign in to comment.