小唯
25f68831fd
fix(test): 合并两个 TestMain 为单一合并体(t_e5997ca4 落盘点护栏 + t_b7a8ed9c 打分缓存护栏)
两卡分支各自在 routes 包加了 TestMain,合入 main 后 multiple definitions of TestMain
⇒ routes 包 setup failed(全套测试拦下)。按 t_b7a8ed9c 文件顶部的合并提示,把两个
TestMain 体合进 testmain_test.go 并删除 scorecache_guard_test.go。
验收(小怡实跑):
- go test ./internal/api/routes/ → ok 50.344s(修前 setup failed)
- E2E TestCommitConflictGate_E2E → PASS 3.70s;日志 '[scorecache] 已禁用(ZHIYI_SCORE_CACHE=0)'
- 测试不再污染生产 Redis:distill-score 键数 3096 → 3096(不变)
2026-10-17 22:53:43 +08:00
..
2026-10-10 15:51:25 +08:00
2026-10-17 22:53:43 +08:00
2026-09-20 00:37:25 +08:00
2026-10-12 21:38:01 +08:00
2026-10-10 15:51:25 +08:00
2026-10-10 15:51:25 +08:00
2026-10-10 15:51:25 +08:00
2026-10-17 22:12:40 +08:00