mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-19 02:43:18 +00:00
test(core): align unit test mock payloads to native callId structure
This commit is contained in:
@@ -359,7 +359,7 @@ describe('LocalSubagentInvocation', () => {
|
||||
isSubagentActivityEvent: true,
|
||||
agentName: 'MockAgent',
|
||||
type: 'TOOL_CALL_END',
|
||||
data: { name: 'ls', id: 'call1', data: { isError: true } },
|
||||
data: { name: 'ls', callId: 'call1', data: { isError: true } },
|
||||
} as SubagentActivityEvent);
|
||||
}
|
||||
return { result: 'Done', terminate_reason: AgentTerminateMode.GOAL };
|
||||
|
||||
@@ -273,7 +273,7 @@ describe('LocalSessionInvocation', () => {
|
||||
isSubagentActivityEvent: true,
|
||||
agentName: 'MockAgent',
|
||||
type: 'TOOL_CALL_END',
|
||||
data: { name: 'ls', data: {}, id: 'call-123' },
|
||||
data: { name: 'ls', data: {}, callId: 'call-123' },
|
||||
});
|
||||
|
||||
await executePromise;
|
||||
@@ -749,7 +749,11 @@ describe('LocalSessionInvocation', () => {
|
||||
isSubagentActivityEvent: true,
|
||||
agentName: 'MockAgent',
|
||||
type: 'TOOL_CALL_END',
|
||||
data: { name: 'failing_tool', data: { isError: true }, id: 'call-err' },
|
||||
data: {
|
||||
name: 'failing_tool',
|
||||
data: { isError: true },
|
||||
callId: 'call-err',
|
||||
},
|
||||
});
|
||||
|
||||
await executePromise;
|
||||
|
||||
Reference in New Issue
Block a user