修复缓存命中率统计测试用例

This commit is contained in:
GoEdgeLab
2023-12-03 14:55:09 +08:00
parent bb295e4c14
commit eb4bb630e9
2 changed files with 4 additions and 3 deletions

View File

@@ -58,10 +58,10 @@ func TestNewStat(t *testing.T) {
{
var stat = cachehits.NewStat(5)
for i := 0; i < 10001; i++ {
for i := 0; i < 100001; i++ {
stat.IncreaseCached("a")
}
for i := 0; i < 499; i++ {
for i := 0; i < 4999; i++ {
stat.IncreaseHit("a")
}