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:
parent
b8bdf0ebd7
commit
24950985df
@ -10,14 +10,14 @@ async function testNoServerNoCrash() {
|
|||||||
const instance = new NodeInstance([],
|
const instance = new NodeInstance([],
|
||||||
`process._debugEnd();
|
`process._debugEnd();
|
||||||
process.exit(42);`);
|
process.exit(42);`);
|
||||||
strictEqual(42, (await instance.expectShutdown()).exitCode);
|
strictEqual((await instance.expectShutdown()).exitCode, 42);
|
||||||
}
|
}
|
||||||
|
|
||||||
async function testNoSessionNoCrash() {
|
async function testNoSessionNoCrash() {
|
||||||
console.log('Test there\'s no crash stopping server without connecting');
|
console.log('Test there\'s no crash stopping server without connecting');
|
||||||
const instance = new NodeInstance('--inspect=0',
|
const instance = new NodeInstance('--inspect=0',
|
||||||
'process._debugEnd();process.exit(42);');
|
'process._debugEnd();process.exit(42);');
|
||||||
strictEqual(42, (await instance.expectShutdown()).exitCode);
|
strictEqual((await instance.expectShutdown()).exitCode, 42);
|
||||||
}
|
}
|
||||||
|
|
||||||
async function testSessionNoCrash() {
|
async function testSessionNoCrash() {
|
||||||
@ -33,7 +33,7 @@ async function testSessionNoCrash() {
|
|||||||
const session = await instance.connectInspectorSession();
|
const session = await instance.connectInspectorSession();
|
||||||
await session.send({ 'method': 'Runtime.runIfWaitingForDebugger' });
|
await session.send({ 'method': 'Runtime.runIfWaitingForDebugger' });
|
||||||
await session.waitForServerDisconnect();
|
await session.waitForServerDisconnect();
|
||||||
strictEqual(42, (await instance.expectShutdown()).exitCode);
|
strictEqual((await instance.expectShutdown()).exitCode, 42);
|
||||||
}
|
}
|
||||||
|
|
||||||
async function runTest() {
|
async function runTest() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user