Skip to content

Commit

Permalink
test: switch assertEqual arguments
Browse files Browse the repository at this point in the history
PR-URL: nodejs#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>
  • Loading branch information
zeckson authored and Trott committed May 30, 2019
1 parent b8bdf0e commit 2495098
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/sequential/test-inspector-debug-end.js
Expand Up @@ -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() {
Expand All @@ -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() {
Expand Down

0 comments on commit 2495098

Please sign in to comment.