test: align e2e coverage with supervisor session flow

This commit is contained in:
Peter Steinberger
2026-02-16 03:41:50 +00:00
parent 702b94fe8f
commit ae6fe67550
3 changed files with 78 additions and 65 deletions

View File

@@ -44,7 +44,7 @@ describe("message tool agent routing", () => {
const call = mocks.runMessageAction.mock.calls[0]?.[0];
expect(call?.agentId).toBe("alpha");
expect(call?.sessionKey).toBeUndefined();
expect(call?.sessionKey).toBe("agent:alpha:main");
});
});

View File

@@ -213,7 +213,8 @@ describe("sessions_send gating", () => {
timeoutSeconds: 0,
});
expect(callGatewayMock).not.toHaveBeenCalled();
expect(callGatewayMock).toHaveBeenCalledTimes(1);
expect(callGatewayMock.mock.calls[0]?.[0]).toMatchObject({ method: "sessions.list" });
expect(result.details).toMatchObject({ status: "forbidden" });
});
});