From 520992a1defdeb213a4705a1f7690f2643769a42 Mon Sep 17 00:00:00 2001 From: Ayaan Zaidi Date: Fri, 5 Jun 2026 18:11:49 +0530 Subject: [PATCH] test(gateway): avoid future session fixture timestamps --- src/gateway/server-methods/agent.test.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gateway/server-methods/agent.test.ts b/src/gateway/server-methods/agent.test.ts index c95a979d9713..46d1a8d066a2 100644 --- a/src/gateway/server-methods/agent.test.ts +++ b/src/gateway/server-methods/agent.test.ts @@ -1823,6 +1823,7 @@ describe("gateway agent handler", () => { }); it("reactivates completed subagent sessions and broadcasts send updates", async () => { const childSessionKey = "agent:main:subagent:followup"; + const updatedAt = Date.now() - 1_000; const completedRun = { runId: "run-old", childSessionKey, @@ -1843,7 +1844,7 @@ describe("gateway agent handler", () => { storePath: "/tmp/sessions.json", entry: { sessionId: "sess-followup", - updatedAt: Date.now(), + updatedAt, }, canonicalKey: childSessionKey, }); @@ -1851,7 +1852,7 @@ describe("gateway agent handler", () => { const store: Record = { [childSessionKey]: { sessionId: "sess-followup", - updatedAt: Date.now(), + updatedAt, }, }; return await updater(store);