mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-17 08:41:19 -07:00
refactor(core): consolidate execute() arguments into ExecuteOptions (#25101)
This commit is contained in:
@@ -92,9 +92,9 @@ describe('Background Tools Integration', () => {
|
||||
(listInvocation as any).context = {
|
||||
config: { getSessionId: () => 'default' },
|
||||
};
|
||||
const listResult = await listInvocation.execute(
|
||||
new AbortController().signal,
|
||||
);
|
||||
const listResult = await listInvocation.execute({
|
||||
abortSignal: new AbortController().signal,
|
||||
});
|
||||
|
||||
expect(listResult.llmContent).toContain(
|
||||
`[PID ${pid}] RUNNING: \`node continuous_log\``,
|
||||
@@ -109,9 +109,9 @@ describe('Background Tools Integration', () => {
|
||||
(readInvocation as any).context = {
|
||||
config: { getSessionId: () => 'default' },
|
||||
};
|
||||
const readResult = await readInvocation.execute(
|
||||
new AbortController().signal,
|
||||
);
|
||||
const readResult = await readInvocation.execute({
|
||||
abortSignal: new AbortController().signal,
|
||||
});
|
||||
|
||||
expect(readResult.llmContent).toContain('Showing last');
|
||||
expect(readResult.llmContent).toContain('Log line');
|
||||
|
||||
Reference in New Issue
Block a user