test: fix incorrect ordering of args in assert.strictEqual()

PR-URL: https://github.com/nodejs/node/pull/23461
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
This commit is contained in:
mdaum 2018-10-12 09:32:00 -07:00 committed by Rich Trott
parent 767d4daeed
commit 657ee7b025

View File

@ -36,7 +36,7 @@ server.on('upgrade', function(req, socket, upgradeHead) {
}); });
process.on('uncaughtException', common.mustCall(function(e) { process.on('uncaughtException', common.mustCall(function(e) {
assert.strictEqual('upgrade error', e.message); assert.strictEqual(e.message, 'upgrade error');
process.exit(0); process.exit(0);
})); }));