mirror of https://github.com/milvus-io/milvus.git
Fix probable ut fail caused by session key confict (#21883)
Signed-off-by: wayblink <anyang.wang@zilliz.com>pull/21896/head
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…
Reference in New Issue