Files
EdgeAPI/internal/db/models/metric_sum_stat_dao_test.go

18 lines
289 B
Go
Raw Normal View History

2021-07-01 10:39:42 +08:00
package models
import (
_ "github.com/go-sql-driver/mysql"
_ "github.com/iwind/TeaGo/bootstrap"
2021-12-03 12:06:13 +08:00
"github.com/iwind/TeaGo/dbs"
2021-12-03 10:57:40 +08:00
"testing"
2021-07-01 10:39:42 +08:00
)
2021-12-03 10:57:40 +08:00
func TestMetricSumStatDAO_Clean(t *testing.T) {
2021-12-03 12:06:13 +08:00
dbs.NotifyReady()
err := NewMetricSumStatDAO().Clean(nil)
2021-12-03 10:57:40 +08:00
if err != nil {
t.Fatal(err)
}
}