mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-05 19:50:22 +00:00
test: inject thread-safe gateway and ACP seams
This commit is contained in:
@@ -151,6 +151,7 @@ async function executeSend(params: {
|
||||
}) {
|
||||
const tool = createMessageTool({
|
||||
config: {} as never,
|
||||
runMessageAction: mocks.runMessageAction as never,
|
||||
...params.toolOptions,
|
||||
});
|
||||
await tool.execute("1", {
|
||||
@@ -187,6 +188,9 @@ describe("message tool secret scoping", () => {
|
||||
const tool = createMessageTool({
|
||||
currentChannelProvider: "discord",
|
||||
agentAccountId: "ops",
|
||||
loadConfig: mocks.loadConfig as never,
|
||||
resolveCommandSecretRefsViaGateway: mocks.resolveCommandSecretRefsViaGateway as never,
|
||||
runMessageAction: mocks.runMessageAction as never,
|
||||
});
|
||||
|
||||
await tool.execute("1", {
|
||||
@@ -216,6 +220,7 @@ describe("message tool agent routing", () => {
|
||||
const tool = createMessageTool({
|
||||
agentSessionKey: "agent:alpha:main",
|
||||
config: {} as never,
|
||||
runMessageAction: mocks.runMessageAction as never,
|
||||
});
|
||||
|
||||
await tool.execute("1", {
|
||||
|
||||
Reference in New Issue
Block a user