未验证 提交 45ff5684 编写于 作者: W wayblink 提交者: GitHub

Fix probable ut fail caused by session key confict (#21883)

Signed-off-by: Nwayblink <anyang.wang@zilliz.com>
上级 11a3d0a5
......@@ -18,6 +18,7 @@ package distributed
import (
"context"
"fmt"
"net"
"os"
"os/signal"
......@@ -62,6 +63,9 @@ func TestMain(t *testing.M) {
func TestConnectionManager(t *testing.T) {
ctx := context.Background()
testPath := fmt.Sprintf("TestConnectionManager-%d", time.Now().Unix())
paramtable.Get().Save(paramtable.Get().EtcdCfg.RootPath.Key, testPath)
session := initSession(ctx)
cm := NewConnectionManager(session)
cm.AddDependency(typeutil.RootCoordRole)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册