fix: 修复 WebSocket 流式响应 + 添加 E2E 测试#30
Merged
Merged
Conversation
- 使用 call_soon_threadsafe 替代 run_coroutine_threadsafe - 简化线程间数据传递逻辑
- 新增 tests/test_e2e/test_ws_e2e.py - Server 健康检查 - WebSocket 协议测试(连接/断开/无效JSON/未知方法) - 基础功能测试(get_model/get_stats/clear/permission/audit) - 并发请求测试 - CLI 命令测试(help/server status/config show) - 更新 CI 流水线:单元测试 + E2E 测试分步执行 - 13 个 E2E 测试全部通过
- 移除未使用的 asyncio 导入 - 移除未使用的 ws 变量 - 13 个 E2E 测试全部通过
- tests/test_e2e/test_cli.py 已废弃(旧 ink CLI 测试) - CI 不再运行该测试
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
修复内容
1. 修复 WebSocket 流式响应
call_soon_threadsafe替代run_coroutine_threadsafe2. 添加 E2E 测试到 CI
tests/test_e2e/test_ws_e2e.py测试