diff --git a/test/sequential/test-inspector-exception.js b/test/sequential/test-inspector-exception.js index a35115b9f5f15f..de089ec240f148 100644 --- a/test/sequential/test-inspector-exception.js +++ b/test/sequential/test-inspector-exception.js @@ -39,7 +39,7 @@ async function runTest() { const session = await child.connectInspectorSession(); await testBreakpointOnStart(session); await session.runToCompletion(); - assert.strictEqual(1, (await child.expectShutdown()).exitCode); + assert.strictEqual((await child.expectShutdown()).exitCode, 1); } runTest();