From 0a378a4c1d3167a9b53b8907eeeb3479bf4afddf Mon Sep 17 00:00:00 2001 From: Jinjing <6427696+AmethystLiang@users.noreply.github.com> Date: Mon, 14 Sep 2026 23:52:28 -0700 Subject: [PATCH] fix tests --- src/main/providers/local-pty-child-process-verdict.test.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/providers/local-pty-child-process-verdict.test.ts b/src/main/providers/local-pty-child-process-verdict.test.ts index 2a547fc26bd..d9d063172c5 100644 --- a/src/main/providers/local-pty-child-process-verdict.test.ts +++ b/src/main/providers/local-pty-child-process-verdict.test.ts @@ -108,14 +108,18 @@ describe('inspectLocalPtyChildProcesses', () => { }) it('collapses uncertainty to false only in the boolean adapter', async () => { + let reads = 0 registerPane( 'pty-closed', () => { + reads += 1 throw new Error('EBADF: bad file descriptor') }, '/bin/zsh' ) await expect(hasLocalPtyChildProcesses('pty-closed')).resolves.toBe(false) + // The `false` has to come from the failed read, not from an earlier short-circuit. + expect(reads).toBe(1) }) })