From 96d699cb643f608537053f663b0d9fd9eaa558de Mon Sep 17 00:00:00 2001 From: Neil <4138956+nwparker@users.noreply.github.com> Date: Sun, 23 Aug 2026 20:40:06 -0700 Subject: [PATCH] test(git-watch): clear inherited fake timers --- src/main/ipc/worktree-git-common-watch.test.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/ipc/worktree-git-common-watch.test.ts b/src/main/ipc/worktree-git-common-watch.test.ts index 06ca956c5a8..765bf9b4344 100644 --- a/src/main/ipc/worktree-git-common-watch.test.ts +++ b/src/main/ipc/worktree-git-common-watch.test.ts @@ -517,6 +517,7 @@ describe('worktree git-common narrow watch (darwin)', () => { it('re-arms the native stream when the root is replaced with the same child names', async () => { vi.useFakeTimers() + vi.clearAllTimers() const restorePerformanceNow = vi .spyOn(nodePerformance, 'now') .mockImplementation(() => Date.now()) @@ -552,6 +553,7 @@ describe('worktree git-common narrow watch (darwin)', () => { it('disposes an in-flight stale resubscribe and fences its interruption hook', async () => { vi.useFakeTimers() + vi.clearAllTimers() const restorePerformanceNow = vi .spyOn(nodePerformance, 'now') .mockImplementation(() => Date.now())