test(team-mode): decouple resume history fixture from session routing

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
YeonGyu-Kim
2026-05-20 13:00:48 +09:00
parent af42f0ac70
commit f79da77fe0
@@ -381,9 +381,8 @@ describe("resumeAllTeams", () => {
const ancientMtime = new Date(Date.now() - 60 * 60 * 1000) const ancientMtime = new Date(Date.now() - 60 * 60 * 1000)
await utimes(reservedPath, ancientMtime, ancientMtime) await utimes(reservedPath, ancientMtime, ancientMtime)
const sessionGet: SessionGetMock = async () => ({ data: { id: "alive" } }) const sessionGet: SessionGetMock = async () => ({ data: { id: "alive" } })
const sessionMessages: SessionMessagesMock = async ({ path: sessionPath }) => ({ const sessionMessages: SessionMessagesMock = async () => ({
data: sessionPath.id === "ses_worker" data: [
? [
{ {
info: { role: "user" }, info: { role: "user" },
parts: [ parts: [
@@ -393,8 +392,7 @@ describe("resumeAllTeams", () => {
}, },
], ],
}, },
] ],
: [],
}) })
// when // when