mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
Propagate abort signal to ccpa generateContent. (#1106)
This commit is contained in:
committed by
GitHub
parent
42329e0258
commit
11f524c125
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user