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

21 lines
324 B
Go
Raw Permalink Normal View History

2021-08-08 15:47:48 +08:00
package models
2021-05-25 15:49:13 +08:00
import (
2024-07-27 14:15:25 +08:00
"testing"
2021-05-25 15:49:13 +08:00
_ "github.com/go-sql-driver/mysql"
_ "github.com/iwind/TeaGo/bootstrap"
"github.com/iwind/TeaGo/dbs"
2021-05-25 15:49:13 +08:00
)
func TestNSClusterDAO_DisableNodeCluster(t *testing.T) {
dbs.NotifyReady()
err := SharedNSClusterDAO.DisableNSCluster(nil, 7)
if err != nil {
t.Fatal(err)
}
t.Log("ok")
}