diff --git a/br/pkg/mock/mock_cluster.go b/br/pkg/mock/mock_cluster.go index 24e78877939d7..c60f4764b4ffc 100644 --- a/br/pkg/mock/mock_cluster.go +++ b/br/pkg/mock/mock_cluster.go @@ -108,6 +108,7 @@ func (mock *Cluster) Start() error { cfg.Store = "tikv" cfg.Status.StatusPort = uint(statusPort) cfg.Status.ReportStatus = true + cfg.Socket = fmt.Sprintf("/tmp/tidb-mock-%d.sock", time.Now().UnixNano()) svr, err := server.NewServer(cfg, mock.TiDBDriver) if err != nil {