Skip to content

Commit

Permalink
add debug info
Browse files Browse the repository at this point in the history
Signed-off-by: lhy1024 <[email protected]>
  • Loading branch information
lhy1024 committed Nov 22, 2023
1 parent fb2307d commit b96934b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/server/api/region_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ func (suite *regionTestSuite) checkSplitRegions(cluster *tests.TestCluster) {
}

func (suite *regionTestSuite) TestAccelerateRegionsScheduleInRange() {
fmt.Println("TestAccelerateRegionsScheduleInRange")
env := tests.NewSchedulingTestEnvironment(suite.T())
env.RunTestInTwoModes(suite.checkAccelerateRegionsScheduleInRange)
}
Expand All @@ -98,9 +99,13 @@ func (suite *regionTestSuite) checkAccelerateRegionsScheduleInRange(cluster *tes
suite.NoError(err)
idList := leader.GetRaftCluster().GetSuspectRegions()
if sche := cluster.GetSchedulingPrimaryServer(); sche != nil {
fmt.Println("sche != nil")
idList = sche.GetCluster().GetCoordinator().GetCheckerController().GetSuspectRegions()
}
re.Len(idList, 2)
for _, id := range idList {
fmt.Println(id, "==")
}
re.Len(idList, 2, len(idList))
}

func (suite *regionTestSuite) TestAccelerateRegionsScheduleInRanges() {
Expand Down

0 comments on commit b96934b

Please sign in to comment.