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

19 lines
292 B
Go
Raw Normal View History

2020-11-07 19:40:24 +08:00
package models
import (
_ "github.com/go-sql-driver/mysql"
"github.com/iwind/TeaGo/dbs"
"testing"
2020-11-07 19:40:24 +08:00
)
func TestIPItemDAO_NotifyClustersUpdate(t *testing.T) {
dbs.NotifyReady()
var tx *dbs.Tx
2021-02-06 21:19:19 +08:00
err := SharedIPItemDAO.NotifyUpdate(tx, 28)
if err != nil {
t.Fatal(err)
}
t.Log("ok")
}