From 8d9a18e367eda3148d2988014c173ed5fff235db Mon Sep 17 00:00:00 2001 From: Ryan Leung Date: Wed, 4 Dec 2024 18:40:31 +0800 Subject: [PATCH] debug Signed-off-by: Ryan Leung --- tests/integrations/mcs/scheduling/server_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/integrations/mcs/scheduling/server_test.go b/tests/integrations/mcs/scheduling/server_test.go index cb036e8b042..fc07436b92f 100644 --- a/tests/integrations/mcs/scheduling/server_test.go +++ b/tests/integrations/mcs/scheduling/server_test.go @@ -500,6 +500,9 @@ func (suite *serverTestSuite) TestStoreLimit() { defer tc.Destroy() leaderServer := suite.pdLeader.GetServer() tc.WaitForPrimaryServing(re) + testutil.Eventually(re, func() bool { + return leaderServer.GetRaftCluster().IsServiceIndependent(constant.SchedulingServiceName) + }) oc := tc.GetPrimaryServer().GetCluster().GetCoordinator().GetOperatorController() conf := leaderServer.GetReplicationConfig().Clone()