test(team-mode): stabilize resume stale reservation history check

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 12:52:00 +09:00
parent 655dffbc2a
commit af42f0ac70
@@ -380,8 +380,8 @@ describe("resumeAllTeams", () => {
}))
const ancientMtime = new Date(Date.now() - 60 * 60 * 1000)
await utimes(reservedPath, ancientMtime, ancientMtime)
const sessionGet = mock(async () => ({ data: { id: "alive" } }))
const sessionMessages = mock(async ({ path: sessionPath }: { path: { id: string } }) => ({
const sessionGet: SessionGetMock = async () => ({ data: { id: "alive" } })
const sessionMessages: SessionMessagesMock = async ({ path: sessionPath }) => ({
data: sessionPath.id === "ses_worker"
? [
{
@@ -395,7 +395,7 @@ describe("resumeAllTeams", () => {
},
]
: [],
}))
})
// when
await resumeAllTeams(createExecutorContext(baseDir, sessionGet, sessionMessages), config)