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())