Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Leung <[email protected]>
  • Loading branch information
rleungx committed Dec 4, 2024
1 parent e0f0e97 commit c3f0411
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions tests/integrations/mcs/scheduling/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion tests/scheduling_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func (tc *TestSchedulingCluster) WaitForPrimaryServing(re *require.Assertions) *
var primary *scheduling.Server
testutil.Eventually(re, func() bool {
for _, server := range tc.servers {
if server.IsServing() {
if server.IsServing() && server.GetCoordinator().AreSchedulersInitialized() {
primary = server
return true
}
Expand Down

0 comments on commit c3f0411

Please sign in to comment.