Skip to content

Commit 658a0d1

Browse files
committed
test: stabilize retry suite timers
1 parent bb7a8aa commit 658a0d1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/index-retry.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,6 @@ describe("OpenAIAuthPlugin rate-limit retry", () => {
449449
process.env.CODEX_AUTH_RATE_LIMIT_TOAST_DEBOUNCE_MS = "0";
450450
process.env.CODEX_AUTH_PREWARM = "0";
451451

452-
vi.useFakeTimers();
453452
originalFetch = globalThis.fetch;
454453
globalThis.fetch = vi.fn(async () => new Response("ok", { status: 200 })) as any;
455454
});
@@ -693,6 +692,7 @@ describe("OpenAIAuthPlugin rate-limit retry", () => {
693692
});
694693

695694
it("keeps the total request cap when empty-response retries and server-error rotation combine", async () => {
695+
vi.useFakeTimers();
696696
const logger = await import("../lib/logger.js");
697697
const logWarnSpy = vi.spyOn(logger, "logWarn").mockImplementation(() => {});
698698

0 commit comments

Comments
 (0)