小唯
bea2849494
fix(tests): 修 pre-existing 测试失配,恢复 make test 全绿 (t_8496e8b6)
四处均为本任务之前就存在的测试漂移(与优化B 无关,但让 go test ./... 无法通过):
1. selfoptimize: 2a350cf 给 NewGapDetector 增加了 (emb, ldb) 两个参数,
8 处测试调用点未跟进,整包 test 构建失败。测试只用到 RecordMiss/Close/List,
不需要真实依赖,传 nil, nil 即可。
2. integration_test.go:296 selfoptimize.NewGapDetector() 同上。
3. integration_test.go:323 InMemoryGraph.Navigate 新增 relFilter 参数,补 nil。
4. integration_test.go:339 /api/v1/triggers/fire 的夹具用了 "t1"(那是 executor
内部编号),routes.Triggers 的真实 ID 是 t_decay/t_distill/t_merge 等,
导致 Fire 返回 404 trigger not found。夹具改用 t_decay。
验证: go vet ./... 无输出; go test ./... -count=1 全部 ok(根包 8.1s)
2026-09-12 18:07:40 +08:00
..
2026-09-12 17:57:31 +08:00
2026-09-05 18:13:53 +08:00
2026-09-11 00:41:59 +08:00
2026-08-20 01:13:06 +08:00
2026-09-11 00:41:59 +08:00
2026-08-20 01:13:06 +08:00
2026-08-20 01:13:06 +08:00
2026-09-11 00:41:59 +08:00
2026-09-12 18:07:40 +08:00
2026-09-12 18:07:30 +08:00