From b9c99cf71fd110db574b1fc03e8ec9a706553abd Mon Sep 17 00:00:00 2001 From: Elvis-Philip N Date: Fri, 12 Oct 2018 13:11:14 -0400 Subject: [PATCH] test: corret assertion arg order in test-regress-GH-892.js PR-URL: https://github.com/nodejs/node/pull/23513 Reviewed-By: James M Snell Reviewed-By: Trivikram Kamat Reviewed-By: Colin Ihrig Reviewed-By: Ruben Bridgewater --- test/pummel/test-regress-GH-892.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/pummel/test-regress-GH-892.js b/test/pummel/test-regress-GH-892.js index 4021a53736421b..48201807e39e56 100644 --- a/test/pummel/test-regress-GH-892.js +++ b/test/pummel/test-regress-GH-892.js @@ -59,7 +59,7 @@ function makeRequest() { child.on('exit', function(code) { assert.ok(/DONE/.test(stderrBuffer)); - assert.strictEqual(0, code); + assert.strictEqual(code, 0); }); // The following two lines forward the stdio from the child @@ -95,7 +95,7 @@ const server = https.Server(serverOptions, function(req, res) { }); req.on('end', function() { - assert.strictEqual(bytesExpected, uploadCount); + assert.strictEqual(uploadCount, bytesExpected); res.writeHead(200, { 'content-type': 'text/plain' }); res.end('successful upload\n'); });