Skip to content

Commit

Permalink
test: fix invalid argument order in test-http-expect-continue.js
Browse files Browse the repository at this point in the history
`assert.strictEqual` expects arguments in the following order:

actual, expected[, message]

PR-URL: #24138
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
  • Loading branch information
mroderick authored and BridgeAR committed Nov 13, 2018
1 parent 7cc0a46 commit fb58ada
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-http-expect-continue.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ server.on('listening', common.mustCall(() => {
}));
req.on('response', common.mustCall((res) => {
assert.ok(got_continue, 'Full response received before 100 Continue');
assert.strictEqual(200, res.statusCode,
assert.strictEqual(res.statusCode, 200,
`Final status code was ${res.statusCode}, not 200.`);
res.setEncoding('utf8');
res.on('data', function(chunk) { body += chunk; });
Expand Down

0 comments on commit fb58ada

Please sign in to comment.