阶段性提交

This commit is contained in:
刘祥超
2020-08-21 12:32:33 +08:00
parent 5924b8a5f3
commit 844503dcb8
20 changed files with 2294 additions and 263 deletions

View File

@@ -2,4 +2,21 @@ 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)
}