优化测试用例

This commit is contained in:
GoEdgeLab
2024-01-21 11:13:30 +08:00
parent 411329341a
commit 279b0dce5e
35 changed files with 439 additions and 81 deletions

View File

@@ -125,6 +125,10 @@ func TestCache_IncreaseInt64(t *testing.T) {
}
func TestCache_Read(t *testing.T) {
if !testutils.IsSingleTesting() {
return
}
runtime.GOMAXPROCS(1)
var cache = NewCache[int](PiecesOption{Count: 32})