优化一下测试用例

This commit is contained in:
Yun
2025-10-04 21:53:24 +08:00
parent 05413d0cec
commit 078eaa4e83
+1 -1
View File
@@ -396,7 +396,7 @@ func TestGlobalLock_Concurrency(t *testing.T) {
mu.Unlock()
// 持有锁一段时间
time.Sleep(100 * time.Millisecond)
time.Sleep(1 * time.Second)
lock.Unlock()
}
}(i)