From bada2838ab0a6669d13ca84e4d717f2f926d8a93 Mon Sep 17 00:00:00 2001 From: Orca Worker Date: Sat, 12 Sep 2026 00:28:16 -0700 Subject: [PATCH] test: wait for watcher reconciliation event delivery --- src/main/ipc/worktree-git-common-watch.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/ipc/worktree-git-common-watch.test.ts b/src/main/ipc/worktree-git-common-watch.test.ts index bad700b5445..737a173049f 100644 --- a/src/main/ipc/worktree-git-common-watch.test.ts +++ b/src/main/ipc/worktree-git-common-watch.test.ts @@ -626,8 +626,8 @@ describe('worktree git-common narrow watch (local native platforms)', () => { expect(statCalls.filter((path) => path === worktreesDir)).toHaveLength(1) await vi.waitFor(() => { expect(subscribeMock).toHaveBeenCalledTimes(2) + expect(received.flat()).toContainEqual({ type: 'create', path: worktreesDir }) }) - expect(received.flat()).toContainEqual({ type: 'create', path: worktreesDir }) }) it('resumes polling when the dir is still absent on show', async () => {