test: keep disconnected plugin fixture alive until supervised stop (#29695)

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
This commit is contained in:
OrcaWin
2026-10-16 07:08:22 -07:00
committed by GitHub
co-authored by OrcaWin
parent dbc1e18b07
commit e141e13384
@@ -97,8 +97,9 @@ describe('real plugin worker supervision', () => {
const spec = await createPluginSpec(`
export default function activate(orca) {
orca.commands.register('disconnect', async () => {
process.disconnect?.()
process.removeAllListeners('disconnect')
setInterval(() => {}, 1_000)
process.disconnect?.()
await new Promise(() => {})
})
}