mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
Fix probable ut fail caused by session key confict (#21883)
Signed-off-by: wayblink <anyang.wang@zilliz.com>
This commit is contained in:
parent
11a3d0a50b
commit
45ff568470
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user