test: properly order test assertion variables

PR-URL: https://github.com/nodejs/node/pull/23503
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
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:
David Scott 2018-10-12 09:43:36 -07:00 committed by Ruben Bridgewater
parent 0b1be75f27
commit d362004010
No known key found for this signature in database
GPG Key ID: F07496B3EB3C1762

View File

@ -31,5 +31,5 @@ const cp = ch.spawn('python', ['-c', `print ${SIZE} * "C"`], {
});
cp.on('exit', common.mustCall(function(code) {
assert.strictEqual(0, code);
assert.strictEqual(code, 0);
}));