diff --git a/tools/pd-backup/tests/backup_test.go b/tools/pd-backup/tests/backup_test.go index 2a55a790849..05d2b7b92ed 100644 --- a/tools/pd-backup/tests/backup_test.go +++ b/tools/pd-backup/tests/backup_test.go @@ -37,6 +37,8 @@ func TestBackup(t *testing.T) { err = cluster.RunInitialServers() re.NoError(err) re.NotEmpty(cluster.WaitLeader()) + leaderServer := cluster.GetLeaderServer() + leaderServer.BootstrapCluster() pdAddr := cluster.GetConfig().GetClientURL() urls := strings.Split(pdAddr, ",") defer cluster.Destroy()