Skip to content

Commit 682319f

Browse files
zecksontargos
authored andcommitted
test: switch assertEqual arguments
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]>
1 parent 449ee8d commit 682319f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/sequential/test-inspector-debug-end.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ async function testNoServerNoCrash() {
1010
const instance = new NodeInstance([],
1111
`process._debugEnd();
1212
process.exit(42);`);
13-
strictEqual(42, (await instance.expectShutdown()).exitCode);
13+
strictEqual((await instance.expectShutdown()).exitCode, 42);
1414
}
1515

1616
async function testNoSessionNoCrash() {
1717
console.log('Test there\'s no crash stopping server without connecting');
1818
const instance = new NodeInstance('--inspect=0',
1919
'process._debugEnd();process.exit(42);');
20-
strictEqual(42, (await instance.expectShutdown()).exitCode);
20+
strictEqual((await instance.expectShutdown()).exitCode, 42);
2121
}
2222

2323
async function testSessionNoCrash() {
@@ -33,7 +33,7 @@ async function testSessionNoCrash() {
3333
const session = await instance.connectInspectorSession();
3434
await session.send({ 'method': 'Runtime.runIfWaitingForDebugger' });
3535
await session.waitForServerDisconnect();
36-
strictEqual(42, (await instance.expectShutdown()).exitCode);
36+
strictEqual((await instance.expectShutdown()).exitCode, 42);
3737
}
3838

3939
async function runTest() {

0 commit comments

Comments
 (0)