mirror of
https://github.com/deepseek-ai/deepseek-harness
synced 2026-08-15 21:04:50 +00:00
test(lsp): accept eager dead-slot eviction
This commit is contained in:
@@ -282,8 +282,9 @@ describe('lsp-local end to end over a fake server', () => {
|
||||
readonly instances: ReadonlyMap<string, { readonly dead: boolean }>
|
||||
}).instances
|
||||
const instance = [...instances.values()][0]
|
||||
if (instance === undefined) throw new Error('expected one pooled LSP instance')
|
||||
await waitFor(async () => instance.dead)
|
||||
// The query's finally may already have observed the exit and evicted the dead slot. When the
|
||||
// slot remains, synchronize with its close before proving the next query replaces it.
|
||||
if (instance !== undefined) await waitFor(async () => instance.dead)
|
||||
expect(await ctx.lsp.query(query('goToDefinition'))).toMatchObject({ kind: 'locations' })
|
||||
await ctx.fiber.dispose()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user