Skip to content

Commit 826afd2

Browse files
committed
fix(server): keep Antigravity quota reset test fixture in the future
The live-clock Antigravity quota test failed on main once its hardcoded 2026-11-24T01:05:00Z reset timestamp passed into the past, causing quotaResetAt to fall back to quotaResetDelay and blocking the nightly release preflight. Move the mock fixture and test assertion to 2099-01-01T00:00:00Z so the timestamp stays ahead of the wall clock.
1 parent 615d816 commit 826afd2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎apps/server/scripts/antigravity-mock-agent.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ const profileDir = process.env.GEMINI_HOME;
9595
let sessionCount = 0;
9696

9797
const QUOTA_ERROR =
98-
"Error 429, Message: Quota exhausted for gemini-4-argon., Status: RESOURCE_EXHAUSTED, Details: [map[@type:type.googleapis.com/google.rpc.ErrorInfo domain:googleapis.com metadata:map[quotaResetDelay:3600s quotaResetTimeStamp:2026-11-24T01:05:00Z] reason:QUOTA_EXHAUSTED]]";
98+
"Error 429, Message: Quota exhausted for gemini-4-argon., Status: RESOURCE_EXHAUSTED, Details: [map[@type:type.googleapis.com/google.rpc.ErrorInfo domain:googleapis.com metadata:map[quotaResetDelay:3600s quotaResetTimeStamp:2099-01-01T00:00:00Z] reason:QUOTA_EXHAUSTED]]";
9999
const GATEWAY_ERROR =
100100
"Error 502, Message: Bad Gateway: Failed to connect to backend API, Status: 502 Bad Gateway, Details: []";
101101
const LOST_SIGNATURE_ERROR =

‎apps/server/src/provider/antigravity/AntigravityTurns.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ describe("Antigravity turns", () => {
553553
expect(completedTurns(agy.events)[0]?.payload).toMatchObject({
554554
state: "failed",
555555
failureCategory: "rate_limit",
556-
usageLimit: { resetsAt: "2026-11-24T01:05:00.000Z" },
556+
usageLimit: { resetsAt: "2099-01-01T00:00:00.000Z" },
557557
});
558558
}).pipe(Effect.scoped, Effect.provide(testServices)),
559559
);

0 commit comments

Comments
 (0)