mirror of
https://github.com/openclaw/openclaw.git
synced 2026-10-03 09:39:25 +00:00
fix(ci): align Gateway E2E expectations (#148653)
This commit is contained in:
parent
515ff04e73
commit
9e10ec901d
2 changed files with 9 additions and 5 deletions
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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}`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue