Propagate abort signal to ccpa generateContent. (#1106)

This commit is contained in:
Tommaso Sciortino
2025-06-16 13:24:42 -07:00
committed by GitHub
parent 42329e0258
commit 11f524c125
2 changed files with 12 additions and 1 deletions

View File

@@ -45,6 +45,7 @@ describe('CodeAssistServer', () => {
expect(server.callEndpoint).toHaveBeenCalledWith(
'generateContent',
expect.any(Object),
undefined,
);
expect(response.candidates?.[0]?.content?.parts?.[0]?.text).toBe(
'response',
@@ -82,6 +83,7 @@ describe('CodeAssistServer', () => {
expect(server.streamEndpoint).toHaveBeenCalledWith(
'streamGenerateContent',
expect.any(Object),
undefined,
);
expect(res.candidates?.[0]?.content?.parts?.[0]?.text).toBe('response');
}