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:
@@ -381,20 +381,18 @@ describe("resumeAllTeams", () => {
|
||||
const ancientMtime = new Date(Date.now() - 60 * 60 * 1000)
|
||||
await utimes(reservedPath, ancientMtime, ancientMtime)
|
||||
const sessionGet: SessionGetMock = async () => ({ data: { id: "alive" } })
|
||||
const sessionMessages: SessionMessagesMock = async ({ path: sessionPath }) => ({
|
||||
data: sessionPath.id === "ses_worker"
|
||||
? [
|
||||
{
|
||||
info: { role: "user" },
|
||||
parts: [
|
||||
{
|
||||
type: "text",
|
||||
text: `<peer_message from="lead" messageId="${workerMessageId}" kind="message">already accepted</peer_message>`,
|
||||
},
|
||||
],
|
||||
},
|
||||
]
|
||||
: [],
|
||||
const sessionMessages: SessionMessagesMock = async () => ({
|
||||
data: [
|
||||
{
|
||||
info: { role: "user" },
|
||||
parts: [
|
||||
{
|
||||
type: "text",
|
||||
text: `<peer_message from="lead" messageId="${workerMessageId}" kind="message">already accepted</peer_message>`,
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
})
|
||||
|
||||
// when
|
||||
|
||||
Reference in New Issue
Block a user