mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-05 01:20:25 +08:00
23 lines
405 B
Go
23 lines
405 B
Go
package models
|
|
|
|
import (
|
|
_ "github.com/go-sql-driver/mysql"
|
|
"testing"
|
|
)
|
|
|
|
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)
|
|
}
|