mirror of
https://github.com/alibaba/higress.git
synced 2026-05-27 14:17:27 +08:00
test(ai-proxy): expand wasm integration tests, coverage, and provider matrix (#3790)
Signed-off-by: jingze <daijingze.djz@alibaba-inc.com>
This commit is contained in:
@@ -984,6 +984,10 @@ func RunOpenAIOnStreamingResponseBodyTests(t *testing.T) {
|
||||
action4 := host.CallOnHttpStreamingResponseBody([]byte(chunk4), true)
|
||||
require.Equal(t, types.ActionContinue, action4)
|
||||
|
||||
// Empty chunk should not panic
|
||||
actionEmpty := host.CallOnHttpStreamingResponseBody([]byte{}, false)
|
||||
require.Equal(t, types.ActionContinue, actionEmpty)
|
||||
|
||||
// 验证流式响应处理
|
||||
// 注意:流式响应可能不会在GetResponseBody中累积,需要检查日志或其他方式验证
|
||||
debugLogs := host.GetDebugLogs()
|
||||
|
||||
Reference in New Issue
Block a user