style: gofmt 新增的三个文件
build / build (push) Successful in 1m27s

为什么:远端 CI 的格式门在推送后判红(run 258,job build,format=failure),
本地 `make verify` 那次跑的是"拉取前"的文件集,漏掉了随后新增/改写的三个文件。
失败项:internal/httpapi/library_intent_test.go、internal/jobs/lease_loss_test.go、
internal/platform/postgres/library_protection.go。

怎么验:`gofmt -l internal/ cmd/` 输出为空;`python3 scripts/check_format.py` rc=0
(Go:✅,前端:✅)。只改空白,不改逻辑。
This commit is contained in:
姚章浩
2026-10-30 16:16:45 +08:00
parent 98294b9583
commit afe9affc2a
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -122,4 +122,4 @@ func TestCreateJobRejectsReservedLibraryTypes(t *testing.T) {
if !strings.Contains(recorder.Body.String(), "发布管理专用入口") {
t.Fatalf("拒绝原因必须指向专用入口:%s", recorder.Body.String())
}
}
}
+1 -1
View File
@@ -48,4 +48,4 @@ func TestLeaseLossMustCancelHandler(t *testing.T) {
if continued {
t.Fatal("心跳报失租后 handler 仍在运行:旧代次还能继续写目标")
}
}
}
@@ -139,4 +139,4 @@ SELECT coalesce(snapshot_id,''), coalesce(target_snapshot_id,'') FROM library_jo
add(target, "未释放维护窗口的目标快照")
}
return protected, nil
}
}