test: extend failure-path recovery coverage
This commit is contained in:
10
TASKLIST.md
10
TASKLIST.md
@@ -1093,7 +1093,7 @@
|
||||
|
||||
### YNX-1105 编写失败路径测试矩阵
|
||||
**状态**
|
||||
- [x] 部分关键路径已完成,仍有少量尾项(2026-04-09)
|
||||
- [x] 持续补齐中,关键路径已覆盖并新增恢复场景(2026-04-09)
|
||||
|
||||
**目标**
|
||||
- 系统性覆盖 pairing/auth 失败路径
|
||||
@@ -1144,11 +1144,17 @@
|
||||
- CF-06:未认证 rule message 会关闭连接
|
||||
- HF-03:认证前心跳会返回 `AUTH_FAILED`
|
||||
- HF-04:无会话心跳会返回 `AUTH_FAILED`
|
||||
- 已新增 `Yonexus.Server/tests/state-recovery.test.ts`
|
||||
- SR-01 / PF-09:server restart with pending pairing,验证 pending pairing 与 pairing code 在重启后保留,hello 重新进入 `waiting_pair_confirm`
|
||||
- SR-05:损坏的 server store 会抛出 `YonexusServerStoreCorruptionError`
|
||||
- 已扩展 `Yonexus.Client/tests/state-and-rules.test.ts`
|
||||
- SR-06:损坏的 client state 会抛出 `YonexusClientStateCorruptionError`
|
||||
- 已同步更新 `tests/failure-path/MATRIX.md`,标记 PF-09、SR-01、SR-05、SR-06 为已覆盖
|
||||
|
||||
**待完成**
|
||||
- AF-04:当前实现未单独暴露 `invalid_secret` 分支,需先决定是否保留该错误码语义
|
||||
- RP 其余触发场景
|
||||
- CF / HF / SR 其余边界场景测试(除 CF-06、HF-03、HF-04)
|
||||
- CF / HF / SR 其余边界场景测试(例如 duplicate connection、version mismatch、server/client restart with active session 等)
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user