增加统计指标自动清理

This commit is contained in:
GoEdgeLab
2021-12-03 10:57:40 +08:00
parent 6aedd56976
commit 38a27f6b47
4 changed files with 69 additions and 27 deletions

View File

@@ -3,4 +3,12 @@ package models
import (
_ "github.com/go-sql-driver/mysql"
_ "github.com/iwind/TeaGo/bootstrap"
"testing"
)
func TestMetricSumStatDAO_Clean(t *testing.T) {
err := NewMetricSumStatDAO().Clean(nil, 20)
if err != nil {
t.Fatal(err)
}
}