1.4.5.2
This commit is contained in:
17
EdgeAPI/internal/db/models/node_cluster_dao_test.go
Normal file
17
EdgeAPI/internal/db/models/node_cluster_dao_test.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
_ "github.com/go-sql-driver/mysql"
|
||||
"github.com/iwind/TeaGo/dbs"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestNodeClusterDAO_DisableNodeCluster(t *testing.T) {
|
||||
dbs.NotifyReady()
|
||||
|
||||
err := SharedNodeClusterDAO.DisableNodeCluster(nil, 46)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
t.Log("ok")
|
||||
}
|
||||
Reference in New Issue
Block a user