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

Signed-off-by: wayblink <anyang.wang@zilliz.com>
pull/21896/head
wayblink 2023-01-31 17:39:49 +08:00 committed by GitHub
parent 11a3d0a50b
commit 45ff568470
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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)