test: switch assertEqual arguments

PR-URL: https://github.com/nodejs/node/pull/27910
Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
This commit is contained in:
Evgenii Shchepotev 2019-05-26 17:54:40 +03:00 committed by Rich Trott
parent b8bdf0ebd7
commit 24950985df

View File

@ -10,14 +10,14 @@ async function testNoServerNoCrash() {
const instance = new NodeInstance([],
`process._debugEnd();
process.exit(42);`);
strictEqual(42, (await instance.expectShutdown()).exitCode);
strictEqual((await instance.expectShutdown()).exitCode, 42);
}
async function testNoSessionNoCrash() {
console.log('Test there\'s no crash stopping server without connecting');
const instance = new NodeInstance('--inspect=0',
'process._debugEnd();process.exit(42);');
strictEqual(42, (await instance.expectShutdown()).exitCode);
strictEqual((await instance.expectShutdown()).exitCode, 42);
}
async function testSessionNoCrash() {
@ -33,7 +33,7 @@ async function testSessionNoCrash() {
const session = await instance.connectInspectorSession();
await session.send({ 'method': 'Runtime.runIfWaitingForDebugger' });
await session.waitForServerDisconnect();
strictEqual(42, (await instance.expectShutdown()).exitCode);
strictEqual((await instance.expectShutdown()).exitCode, 42);
}
async function runTest() {