mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 10:11:24 +00:00
test: align e2e coverage with supervisor session flow
This commit is contained in:
@@ -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");
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -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" });
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user