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

23 lines
405 B
Go
Raw Normal View History

2020-07-22 22:17:53 +08:00
package models
import (
_ "github.com/go-sql-driver/mysql"
2020-08-21 12:32:33 +08:00
"testing"
2020-07-22 22:17:53 +08:00
)
2020-08-21 12:32:33 +08:00
func TestNodeDAO_FindAllNodeIdsMatch(t *testing.T) {
nodeIds, err := SharedNodeDAO.FindAllNodeIdsMatch(1)
if err != nil {
t.Fatal(err)
}
t.Log(nodeIds)
}
func TestNodeDAO_FindChangedClusterIds(t *testing.T) {
clusterIds, err := SharedNodeDAO.FindChangedClusterIds()
if err != nil {
t.Fatal(err)
}
t.Log(clusterIds)
}