test(gateway): stabilize live session metadata fixture

This commit is contained in:
Ayaan Zaidi
2026-06-05 17:57:56 +05:30
parent ceee4c6b01
commit 3d68f7e5f7

View File

@@ -1907,9 +1907,10 @@ describe("gateway agent handler", () => {
});
it("includes live session setting metadata in agent send events", async () => {
const updatedAt = Date.now() - 1_000;
mockMainSessionEntry({
sessionId: "sess-main",
updatedAt: Date.now(),
updatedAt,
fastMode: true,
sendPolicy: "deny",
lastChannel: "telegram",
@@ -1920,6 +1921,8 @@ describe("gateway agent handler", () => {
mocks.updateSessionStore.mockImplementation(async (_path, updater) => {
const store: Record<string, unknown> = {
"agent:main:main": buildExistingMainStoreEntry({
sessionId: "sess-main",
updatedAt,
fastMode: true,
sendPolicy: "deny",
lastChannel: "telegram",