diff --git a/internal/distributed/connection_manager_test.go b/internal/distributed/connection_manager_test.go index a2a2a806fd..572e5a9198 100644 --- a/internal/distributed/connection_manager_test.go +++ b/internal/distributed/connection_manager_test.go @@ -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)