From 343be4463498f39e7395250502816b3b42aae15a Mon Sep 17 00:00:00 2001 From: husharp Date: Thu, 22 Aug 2024 10:47:13 +0800 Subject: [PATCH] make test stable Signed-off-by: husharp --- tests/integrations/mcs/scheduling/server_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/integrations/mcs/scheduling/server_test.go b/tests/integrations/mcs/scheduling/server_test.go index 57306640394..4a19321ce57 100644 --- a/tests/integrations/mcs/scheduling/server_test.go +++ b/tests/integrations/mcs/scheduling/server_test.go @@ -106,6 +106,7 @@ func (suite *serverTestSuite) TestAllocIDAfterLeaderChange() { pd2, err := suite.cluster.Join(suite.ctx) re.NoError(err) err = pd2.Run() + re.NotEmpty(suite.cluster.WaitLeader()) re.NoError(err) tc, err := tests.NewTestSchedulingCluster(suite.ctx, 1, suite.backendEndpoints) re.NoError(err)