diff --git a/test/sequential/test-inspector-break-when-eval.js b/test/sequential/test-inspector-break-when-eval.js index e7529f786a9859..9952650252310e 100644 --- a/test/sequential/test-inspector-break-when-eval.js +++ b/test/sequential/test-inspector-break-when-eval.js @@ -63,7 +63,7 @@ async function runTests() { await breakOnLine(session); await stepOverConsoleStatement(session); await session.runToCompletion(); - assert.strictEqual(0, (await child.expectShutdown()).exitCode); + assert.strictEqual((await child.expectShutdown()).exitCode, 0); } runTests();