From 3bf89433c05148b7af0e0f5a97a44a5cbed0457e Mon Sep 17 00:00:00 2001 From: groundwu <1175416256@qq.com> Date: Wed, 12 Jun 2024 18:06:51 +0800 Subject: [PATCH] fix ut --- client/obclient_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/obclient_test.go b/client/obclient_test.go index b497707..b85cede 100644 --- a/client/obclient_test.go +++ b/client/obclient_test.go @@ -52,7 +52,7 @@ func TestObClient_String(t *testing.T) { cfg := config.NewDefaultClientConfig() cli, err := newObClient(testConfigUrl, testFullUserName, testPassWord, testSysUserName, testSysPassWord, cfg) assert.Equal(t, nil, err) - assert.Equal(t, "obClient{config:ClientConfig{ConnPoolMaxConnSize:1, ConnConnectTimeOut:1s, ConnLoginTimeout:5s, OperationTimeOut:10s, LogLevel:1, TableEntryRefreshLockTimeout:4s, TableEntryRefreshTryTimes:3, TableEntryRefreshIntervalBase:100ms, TableEntryRefreshIntervalCeiling:1.6s, MetadataRefreshInterval:1m0s, MetadataRefreshLockTimeout:8s, RsListLocalFileLocation:, RsListHttpGetTimeout:1s, RsListHttpGetRetryTimes:3, RsListHttpGetRetryInterval:100ms, EnableRerouting:true, MaxConnectionAge:0s, EnableSLBLoadBalance:false}, configUrl:http://127.0.0.1:8080/services?User_ID=xxx&UID=xxx&Action=ObRootServiceInfo&ObCluster=xxx&database=xxx, fullUserName:user@mysql#obkv_cluster, userName:user, tenantName:mysql, clusterName:obkv_cluster, database:xxx, sysUA:ObUserAuth{userName:sys, password:}}", cli.String()) + assert.Equal(t, "obClient{config:ClientConfig{ConnPoolMaxConnSize:1, ConnConnectTimeOut:1s, ConnLoginTimeout:5s, OperationTimeOut:10s, LogLevel:1, TableEntryRefreshLockTimeout:4s, TableEntryRefreshTryTimes:3, TableEntryRefreshIntervalBase:100ms, TableEntryRefreshIntervalCeiling:1.6s, MetadataRefreshInterval:1m0s, MetadataRefreshLockTimeout:8s, RsListLocalFileLocation:, RsListHttpGetTimeout:1s, RsListHttpGetRetryTimes:3, RsListHttpGetRetryInterval:100ms, EnableRerouting:true, MaxConnectionAge:0s, EnableSLBLoadBalance:false}, configUrl:http://127.0.0.1:8080/services?User_ID=xxx&UID=xxx&Action=ObRootServiceInfo&ObCluster=xxx&database=xxx, fullUserName:user@mysql#obkv_cluster, userName:user, tenantName:mysql, clusterName:obkv_cluster, database:xxx, sysUA:ObUserAuth{userName:sys, password:[invisible]}}", cli.String()) } func TestObClient_parseFullUserName(t *testing.T) {