fix(ci): align Gateway E2E expectations (#148653)

This commit is contained in:
Vincent Koc 2026-09-15 11:52:14 +08:00 • committed by GitHub
parent 515ff04e73
commit 9e10ec901d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 5 deletions

View file

@ -395,9 +395,13 @@ describe("Gateway repeated-request provider timeout", () => {
);
const completed = events.filter((event) => event.type === "session.recovery.completed");
expect(stalled).toHaveLength(1);
expect(stalled[0]?.ageMs).toEqual(expect.any(Number));
expect(stalled[0]?.ageMs as number).toBeGreaterThanOrEqual(PRODUCTION_RECOVERY_BOUND_MS);
// The heartbeat can report the same stall again while the provider owns its
// request deadline. Every report must still respect the no-progress bound.
expect(stalled.length).toBeGreaterThan(0);
for (const event of stalled) {
expect(event.ageMs).toEqual(expect.any(Number));
expect(event.ageMs as number).toBeGreaterThanOrEqual(PRODUCTION_RECOVERY_BOUND_MS);
}
expect(requested).toEqual([]);
expect(completed).toEqual([]);
expect(

View file

@ -130,7 +130,7 @@ it("opens New Agent through the real Gateway and runner using a protected provid
expect(result).toMatchObject({
sessionId,
action: "none",
reply: expect.stringContaining("Let's hatch a new agent"),
reply: expect.stringContaining("Let's create an agent"),
});
expect(requests).toEqual([
{
@ -170,7 +170,7 @@ it("opens New Agent through the real Gateway and runner using a protected provid
expect(fresh).toMatchObject({
sessionId: freshSessionId,
action: "none",
reply: expect.stringContaining("Let's hatch a new agent"),
reply: expect.stringContaining("Let's create an agent"),
});
expect(requests).toHaveLength(3);
expect(requests[2]?.authorization).toBe(`Bearer ${rotatedKey}`);