Skip to content

Commit

Permalink
fix conflict
Browse files Browse the repository at this point in the history
Signed-off-by: lhy1024 <[email protected]>
  • Loading branch information
lhy1024 committed Nov 10, 2023
1 parent 1dc633c commit 02f3444
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
6 changes: 0 additions & 6 deletions pkg/mcs/scheduling/server/apis/v1/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ func NewService(srv *scheserver.Service) *Service {
s.RegisterCheckersRouter()
s.RegisterHotspotRouter()
s.RegisterRegionsRouter()
s.RegisterRegionLabelRouter()
return s
}

Expand Down Expand Up @@ -177,11 +176,6 @@ func (s *Service) RegisterRegionsRouter() {
router.GET("/:id/labels", getRegionLabels)
}

// RegisterRegionLabelRouter registers the router of the region label handler.
func (s *Service) RegisterRegionLabelRouter() {

}

// RegisterConfigRouter registers the router of the config handler.
func (s *Service) RegisterConfigRouter() {
router := s.root.Group("config")
Expand Down
3 changes: 1 addition & 2 deletions tests/server/api/rule_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -990,8 +990,7 @@ func (suite *regionRuleTestSuite) TestRegionPlacementRule() {
},
}
env := tests.NewSchedulingTestEnvironment(suite.T(), opts...)
// FIXME: enable this test in two modes after we support region label forward.
env.RunTestInPDMode(suite.checkRegionPlacementRule)
env.RunTestInTwoModes(suite.checkRegionPlacementRule)
}

func (suite *regionRuleTestSuite) checkRegionPlacementRule(cluster *tests.TestCluster) {
Expand Down

0 comments on commit 02f3444

Please sign in to comment.