mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-18 11:47:28 +00:00
test: pass extensionContext in abort dedupe e2e
This commit is contained in:
@@ -176,8 +176,15 @@ describe("before_tool_call hook deduplication (#15502)", () => {
|
||||
});
|
||||
const withAbort = wrapToolWithAbortSignal(wrapped, abortController.signal);
|
||||
const [def] = toToolDefinitions([withAbort]);
|
||||
const extensionContext = {} as Parameters<typeof def.execute>[4];
|
||||
|
||||
await def.execute("call-abort-dedup", { command: "ls" }, undefined, undefined, undefined);
|
||||
await def.execute(
|
||||
"call-abort-dedup",
|
||||
{ command: "ls" },
|
||||
undefined,
|
||||
undefined,
|
||||
extensionContext,
|
||||
);
|
||||
|
||||
expect(hookRunner.runBeforeToolCall).toHaveBeenCalledTimes(1);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user