diff --git a/test/sequential/test-inspector-exception.js b/test/sequential/test-inspector-exception.js index 4a41e8826a50d1..1d60d524afe6e3 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();