Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
stabilize index retry stress test
  • Loading branch information
ndycode committed May 1, 2026
commit 6a1496291dfd82ba8945427e5724335368464d5a
7 changes: 1 addition & 6 deletions test/index-retry.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,6 @@ describe("OpenAIAuthPlugin rate-limit retry", () => {
});

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

Expand Down Expand Up @@ -752,11 +751,7 @@ describe("OpenAIAuthPlugin rate-limit retry", () => {
});

const sdk = (await plugin.auth.loader(getAuth, { options: {}, models: {} })) as any;
const fetchPromise = sdk.fetch("https://example.com", {});

await vi.advanceTimersByTimeAsync(1500);

const response = await fetchPromise;
const response = await sdk.fetch("https://example.com", {});
const payload = await response.json();

expect(fetchMock).toHaveBeenCalledTimes(6);
Expand Down