Skip to content

Commit 3463895

Browse files
committed
fix: 消除 state_test.go SA2001 lint 警告
1 parent 65e64e8 commit 3463895

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

common/state_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,9 @@ func TestState_GetOutputMutex(t *testing.T) {
222222
if mu == nil {
223223
t.Fatal("GetOutputMutex returned nil")
224224
}
225-
// 验证返回的指针可以正常加锁
225+
// 验证返回的指针可以正常加锁解锁
226226
mu.Lock()
227+
_ = 1 //nolint:staticcheck // SA2001: 故意测试空临界区
227228
mu.Unlock()
228229
}
229230

0 commit comments

Comments
 (0)