From 0dbbded38bd0e2e276c69eba2791cb3f638c5e24 Mon Sep 17 00:00:00 2001 From: Morgan Roderick Date: Tue, 6 Nov 2018 14:29:34 +0000 Subject: [PATCH] test: fix invalid argument order in test-http-expect-continue.js `assert.strictEqual` expects arguments in the following order: actual, expected[, message] PR-URL: https://github.com/nodejs/node/pull/24138 Reviewed-By: Colin Ihrig Reviewed-By: Anna Henningsen Reviewed-By: Ruben Bridgewater Reviewed-By: Trivikram Kamat Reviewed-By: Gireesh Punathil --- test/parallel/test-http-expect-continue.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-http-expect-continue.js b/test/parallel/test-http-expect-continue.js index eb4dd23d7b552f..10bcb9d568ff35 100644 --- a/test/parallel/test-http-expect-continue.js +++ b/test/parallel/test-http-expect-continue.js @@ -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; });