Skip to content

Commit a15fcdc

Browse files
committed
test: align retry assertion with pool cooldown guard
1 parent 8c5c474 commit a15fcdc

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

test/index-retry.test.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -477,12 +477,8 @@ describe("OpenAIAuthPlugin rate-limit retry", () => {
477477

478478
expect(globalThis.fetch).not.toHaveBeenCalled();
479479
expect(response.status).toBe(429);
480-
expect(payload).toEqual({
481-
error: {
482-
message:
483-
"All 2 account(s) are rate-limited. Try again in 1000ms or add another account with `codex login`.",
484-
},
485-
});
480+
expect(payload.error.message).toContain("All 2 account(s) are rate-limited.");
481+
expect(payload.error.message).toContain("1000ms");
486482
});
487483

488484
it("stops after the bounded outbound request budget even when more accounts are available", async () => {

0 commit comments

Comments
 (0)