Skip to content

Commit

Permalink
test: corret assertion arg order in test-regress-GH-892.js
Browse files Browse the repository at this point in the history
PR-URL: #23513
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
  • Loading branch information
elvisphilipn authored and rvagg committed Nov 28, 2018
1 parent 5f518fc commit f42d5da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/pummel/test-regress-GH-892.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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');
});
Expand Down

0 comments on commit f42d5da

Please sign in to comment.