Skip to content

Commit 4bcdc1b

Browse files
TrottBethGriggs
authored andcommitted
test: fix assertion argument order
Fix the assertion argument order so that it will report "actual" and "expected" correctly when the test fails. Ref: #19263 PR-URL: #19264 Refs: #19263 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Tobias Nießen <[email protected]>
1 parent b67bf38 commit 4bcdc1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/sequential/test-inspector-stop-profile-after-done.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ async function runTests() {
2424
'Waiting for the debugger to disconnect...');
2525
await session.send({ method: 'Profiler.stop' });
2626
session.disconnect();
27-
assert.strictEqual(0, (await child.expectShutdown()).exitCode);
27+
assert.strictEqual((await child.expectShutdown()).exitCode, 0);
2828
}
2929

3030
common.crashOnUnhandledRejection();

0 commit comments

Comments
 (0)