Skip to content

The agent that grows with you

test(desktop-core): capture the Electron PID before quit for the orphan census message

teknium12cf48e0c8212
diff --git a/apps/desktop/e2e/core/boot-lifecycle.spec.ts b/apps/desktop/e2e/core/boot-lifecycle.spec.ts
index fa276084ced..33f22c5cb8e 100644
--- a/apps/desktop/e2e/core/boot-lifecycle.spec.ts
+++ b/apps/desktop/e2e/core/boot-lifecycle.spec.ts
@@ -105,8 +105,8 @@ test('boot handshake, supervised respawn, and zero orphans on quit', async () =>
}
}, 100)
- const describeSeen = () =>
- JSON.stringify([...seen].map(([pid, e]) => ({ pid, ...e, electronPid: app.process().pid })))
+ const electronPid = app.process().pid
+ const describeSeen = () => JSON.stringify([...seen].map(([pid, e]) => ({ pid, ...e, electronPid })))
const finished = (marker: string, step = 0) =>
expect