From 4411e9c549da3466d8d6a954831b544799ea9653 Mon Sep 17 00:00:00 2001 From: Sonu Kapoor Date: Wed, 14 Oct 2026 18:19:45 -0400 Subject: [PATCH] test(fetch): restore real timers after "re-fetches after expiry" The test enabled fake timers and never switched back. Tests run with `isolate: false`, so a test file that runs next in the same worker inherits the fake timers; the filesystem tests then time out. --- packages/fetch/test/index.test.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/fetch/test/index.test.ts b/packages/fetch/test/index.test.ts index f8c1d230c..53ec433ff 100644 --- a/packages/fetch/test/index.test.ts +++ b/packages/fetch/test/index.test.ts @@ -413,6 +413,7 @@ describe("fetch primitive", () => { vitest.advanceTimersByTime(10010); } if (iteration === 2) { + vitest.useRealTimers(); expect(calls).toBe(2); dispose(); resolve();