From bd452e85b3b40083ac13c35cd9afa04dd978c714 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9A=E7=AB=A0=E6=B5=A9?= Date: Tue, 3 Nov 2026 13:05:26 +0800 Subject: [PATCH] =?UTF-8?q?test(library):=20=E7=BB=B4=E6=8A=A4=20scope=20?= =?UTF-8?q?=E7=BB=88=E6=80=81=E6=8C=89=E6=AD=A3=E5=BC=8F=E9=87=8A=E6=94=BE?= =?UTF-8?q?=E8=AF=AD=E4=B9=89=E6=96=AD=E8=A8=80=20released?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ReleaseLibraryMaintenance 的真实终态是 state=released + released_at,原断言写成 verified 会误红;改为按生产语义核对 released/open。 --- cmd/worker/library_three_blockers_chain_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/worker/library_three_blockers_chain_test.go b/cmd/worker/library_three_blockers_chain_test.go index ee7e5ab..d6f965a 100644 --- a/cmd/worker/library_three_blockers_chain_test.go +++ b/cmd/worker/library_three_blockers_chain_test.go @@ -447,7 +447,7 @@ func TestThreeBlockersVerifyChain(t *testing.T) { Scan(&scopeState, &scopeIngress, &scopeReleased); err != nil { t.Fatal(err) } - if scopeReleased == nil || scopeState != "verified" || scopeIngress != "open" { + if scopeReleased == nil || scopeState != "released" || scopeIngress != "open" { t.Fatalf("scope maintenance final state=%s ingress=%s released=%v", scopeState, scopeIngress, scopeReleased) } sentinelPG := tbUnrelatedSentinel(t, ctx, pool)