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 <jasnell@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
Elvis-Philip N 2018-10-12 13:11:14 -04:00 committed by Ruben Bridgewater
parent 3a62c06067
commit 183838d30b
No known key found for this signature in database
GPG Key ID: F07496B3EB3C1762

View File

@ -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');
});