优化指标数据清理

This commit is contained in:
GoEdgeLab
2021-12-03 12:06:13 +08:00
parent 38a27f6b47
commit f32c97a85b
5 changed files with 102 additions and 17 deletions

View File

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