|
@@ -1,4 +1,4 @@
|
|
|
-package odbclient_test
|
|
|
+package odbc_test
|
|
|
|
|
|
import (
|
|
|
"fmt"
|
|
@@ -11,7 +11,7 @@ import (
|
|
|
ccfg "git.wecise.com/wecise/common/matrix/cfg"
|
|
|
clog "git.wecise.com/wecise/common/matrix/logger"
|
|
|
"git.wecise.com/wecise/odb-go/odb"
|
|
|
- "git.wecise.com/wecise/odbtest/odbclient"
|
|
|
+ "git.wecise.com/wecise/odbtest/odbc"
|
|
|
)
|
|
|
|
|
|
var cfg = ccfg.MConfig()
|
|
@@ -21,8 +21,8 @@ func TestConcurrent(t *testing.T) {
|
|
|
var n, reqcount, okcount, confirmcount, errcount int32
|
|
|
odb.QueryDoAsync = true
|
|
|
log.Info("QueryDoAsync =", odb.QueryDoAsync)
|
|
|
- log.Info("开始测试连接到", odbclient.Config().Hosts)
|
|
|
- client, err := odbclient.NewClient()
|
|
|
+ log.Info("开始测试连接到", odbc.Config().Hosts)
|
|
|
+ client, err := odbc.NewClient()
|
|
|
if err != nil {
|
|
|
log.Error(fmt.Sprint("connection error:", err, atomic.AddInt32(&errcount, 1)))
|
|
|
return
|
|
@@ -39,8 +39,7 @@ func TestConcurrent(t *testing.T) {
|
|
|
}
|
|
|
|
|
|
log.Info("开启事件订阅")
|
|
|
- odbclient.Subscribe(client, "CLASS_DATA_CHANGE:/")
|
|
|
- odbclient.Subscribe(client, "META_DATA_CHANGE:/")
|
|
|
+ odbc.SubscribeTest(client)
|
|
|
|
|
|
log.Info("开始创建相关类", classname)
|
|
|
cns := regexp.MustCompile("^/([^/]+)/([^/]+)").FindAllStringSubmatch(classname, -1)
|