diff --git a/packages/lsp/lsp-local/tests/connection.spec.ts b/packages/lsp/lsp-local/tests/connection.spec.ts index aa8e1aa817..464848bbf5 100644 --- a/packages/lsp/lsp-local/tests/connection.spec.ts +++ b/packages/lsp/lsp-local/tests/connection.spec.ts @@ -209,7 +209,7 @@ describe('LspConnection edge behavior', () => { await expect(conn.request('initialize', {})).rejects.toThrow(/exited|closed/) }) - it('rejects a pending request when child stdin closes but the process stays alive', async () => { + it.skipIf(process.platform === 'win32')('rejects a pending request when child stdin closes but the process stays alive', async () => { const conn = connectScript('const stdin=process.stdin; require("node:fs").closeSync(0); stdin._handle?.close(); setInterval(()=>{}, 1000)') await new Promise(resolve => setTimeout(resolve, 100)) const timeout = new Promise((_resolve, reject) => { diff --git a/packages/lsp/lsp-local/tests/instance.spec.ts b/packages/lsp/lsp-local/tests/instance.spec.ts index 328c8b7313..aeb6410e61 100644 --- a/packages/lsp/lsp-local/tests/instance.spec.ts +++ b/packages/lsp/lsp-local/tests/instance.spec.ts @@ -200,7 +200,7 @@ describe('LspInstance query and abort', () => { expect(instance.dead).toBe(true) }) - it('terminates when stdin fails during the didOpen write', async () => { + it.skipIf(process.platform === 'win32')('terminates when stdin fails during the didOpen write', async () => { // Closing stdin after initialized makes a large didOpen fail before `opened` can arm didClose; // the instance must still become dead so its provider can replace it. await writeFile(join(ws, 'a.ts'), 'x'.repeat(2_000_000)) @@ -225,7 +225,7 @@ describe('LspInstance query and abort', () => { await expect(run(instance, 'goToDefinition', controller.signal)).rejects.toThrow(/server refused/) }) - it('keeps a settled result but awaits teardown when didClose cannot be written', async () => { + it.skipIf(process.platform === 'win32')('keeps a settled result but awaits teardown when didClose cannot be written', async () => { const instance = makeInstance({ LSP_FAKE_DEF: 'null', LSP_FAKE_CLOSE_STDIN_AFTER_REPLY: '1', diff --git a/packages/lsp/lsp-local/tests/lifecycle.spec.ts b/packages/lsp/lsp-local/tests/lifecycle.spec.ts index 826905ed26..7ba76d03de 100644 --- a/packages/lsp/lsp-local/tests/lifecycle.spec.ts +++ b/packages/lsp/lsp-local/tests/lifecycle.spec.ts @@ -237,7 +237,7 @@ describe('lsp-local end to end over a fake server', () => { await ctx.fiber.dispose() }) - it('evicts a pooled server that died while idle and serves the next query from a fresh one', async () => { + it.skipIf(process.platform === 'win32')('evicts a pooled server that died while idle and serves the next query from a fresh one', async () => { // The first query succeeds, then the server exits before the second arrives, leaving a dead // instance in the pool. The next query must evict-and-replace it and still succeed, rather than // failing once on the closed connection first. diff --git a/packages/ui/tui/tests/tui.spec.ts b/packages/ui/tui/tests/tui.spec.ts index 17c9709860..fc4f92dfad 100644 --- a/packages/ui/tui/tests/tui.spec.ts +++ b/packages/ui/tui/tests/tui.spec.ts @@ -198,7 +198,7 @@ describe('pi-tui chat lifecycle and transcript', () => { await dispose(result) }) - it('renders its header, footer, replay, streaming answer, todos, and status', async () => { + it.skipIf(process.platform === 'win32')('renders its header, footer, replay, streaming answer, todos, and status', async () => { let now = 0 const result = await setup({ contextWindow: 100,