mirror of
https://github.com/stablyai/orca.git
synced 2026-10-31 00:57:45 +00:00
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:
@@ -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(() => {})
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user