Skip to content

Commit

Permalink
test: switch assertEqual arguments
Browse files Browse the repository at this point in the history
PR-URL: #27910
Reviewed-By: Ujjwal Sharma <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Сковорода Никита Андреевич <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
  • Loading branch information
zeckson authored and targos committed May 31, 2019
1 parent 449ee8d commit 682319f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/sequential/test-inspector-debug-end.js
Original file line number Diff line number Diff line change
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 682319f

Please sign in to comment.