test: 对齐 coverage.scope 移除、测试改名,删掉 CI -skip

06a43f3 已有意删除 coverage.scope(范围根资产+company 富化)以精简规划上
下文,但该测试仍断言此字段。去掉相关断言、改名为 TestAssociatedCompany
AssetsEnterTaskContext(仍校验公司资产进入任务上下文),并移除 CI 里的 -skip。
This commit is contained in:
wangdefa committed 2026-10-20 23:16:31 -07:00
1 parent 98515a3974
commit 1e3536f571
2 files changed
+10 -25

No files matched your search

+1 -3
View File
@@ -116,10 +116,8 @@ jobs:
- name: 测试
run: |
# -p 1:各包共用一个库,串行执行避免跨包数据竞争。
# -skip:TestGraphOverviewExpandsAssociatedCompanyScope 在当前代码上
# 已失败(coverage["scope"] 为 nil),与本流程无关,修好后请删掉。
run_tests() {
go test -p 1 ./... -count=1 -skip 'TestGraphOverviewExpandsAssociatedCompanyScope'
go test -p 1 ./... -count=1
}
# 已知偶发:server 包的后台 worker 会在测试结束后继续写 t.TempDir(),
# 触发 "TempDir RemoveAll cleanup: directory not empty"。根因是