From 4961878a6f93e6f6812004432ac5d530970f9300 Mon Sep 17 00:00:00 2001 From: ZacharyZcR Date: Tue, 16 Jun 2026 21:16:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B6=88=E9=99=A4=20state=5Ftest.go=20S?= =?UTF-8?q?A2001=20lint=20=E8=AD=A6=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/state_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/state_test.go b/common/state_test.go index 9064e43..e316c9b 100644 --- a/common/state_test.go +++ b/common/state_test.go @@ -222,8 +222,9 @@ func TestState_GetOutputMutex(t *testing.T) { if mu == nil { t.Fatal("GetOutputMutex returned nil") } - // 验证返回的指针可以正常加锁 + // 验证返回的指针可以正常加锁解锁 mu.Lock() + _ = 1 //nolint:staticcheck // SA2001: 故意测试空临界区 mu.Unlock() }