diff --git a/test/sequential/test-inspector-stop-profile-after-done.js b/test/sequential/test-inspector-stop-profile-after-done.js index b488281b0cf25f..8801656bdfc22c 100644 --- a/test/sequential/test-inspector-stop-profile-after-done.js +++ b/test/sequential/test-inspector-stop-profile-after-done.js @@ -24,7 +24,7 @@ async function runTests() { 'Waiting for the debugger to disconnect...'); await session.send({ method: 'Profiler.stop' }); session.disconnect(); - assert.strictEqual(0, (await child.expectShutdown()).exitCode); + assert.strictEqual((await child.expectShutdown()).exitCode, 0); } common.crashOnUnhandledRejection();