diff --git a/test/utilities/debug.ts b/test/utilities/debug.ts index fb122e8c..a1a5304b 100644 --- a/test/utilities/debug.ts +++ b/test/utilities/debug.ts @@ -108,5 +108,6 @@ export async function waitForDebugAdapterEvent( * @returns exit code of the DAP */ export async function waitForDebugAdapterExit(name: string): Promise { - return await waitForDebugAdapterEvent(name, "exited").then(m => m.body.exitCode); + const message = await waitForDebugAdapterEvent(name, "exited"); + return message.body.exitCode; }