diff --git a/tests/integrations/mcs/scheduling/api_test.go b/tests/integrations/mcs/scheduling/api_test.go index 443bee2cd6a..f3e7f235018 100644 --- a/tests/integrations/mcs/scheduling/api_test.go +++ b/tests/integrations/mcs/scheduling/api_test.go @@ -508,6 +508,8 @@ func (suite *apiTestSuite) checkAdminRegionCacheForward(cluster *tests.TestClust func (suite *apiTestSuite) TestFollowerForward() { suite.env.RunTestBasedOnMode(suite.checkFollowerForward) + suite.TearDownSuite() + suite.SetupSuite() } func (suite *apiTestSuite) checkFollowerForward(cluster *tests.TestCluster) { @@ -517,20 +519,6 @@ func (suite *apiTestSuite) checkFollowerForward(cluster *tests.TestCluster) { defer cancel() follower, err := cluster.JoinAPIServer(ctx) re.NoError(err) - defer func() { - leader := cluster.GetLeaderServer() - cli := leader.GetEtcdClient() - testutil.Eventually(re, func() bool { - _, err = cli.MemberRemove(context.Background(), follower.GetServer().GetMember().ID()) - return err == nil - }) - testutil.Eventually(re, func() bool { - res, err := cli.MemberList(context.Background()) - return err == nil && len(res.Members) == 1 - }) - cluster.DeleteServer(follower.GetConfig().Name) - follower.Destroy() - }() re.NoError(follower.Run()) re.NotEmpty(cluster.WaitLeader())