Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
Signed-off-by: lhy1024 <[email protected]>
  • Loading branch information
lhy1024 committed May 10, 2021
1 parent 0ecf0cf commit bbf0b37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/schedulers/hot_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func (s *testHotSchedulerSuite) TestGCPendingOpInfos(c *C) {
operator.SetOperatorStatusReachTime(op, operator.CREATED, time.Now().Add(-3*statistics.StoreHeartBeatReportInterval*time.Second))
return op
}
opCreaters := [4]func(region *core.RegionInfo, ty opType) *operator.Operator{shouldRemoveOp, notDoneOp, doneOp}
opCreaters := [3]func(region *core.RegionInfo, ty opType) *operator.Operator{shouldRemoveOp, notDoneOp, doneOp}

typs := []opType{movePeer, transferLeader}

Expand All @@ -102,7 +102,7 @@ func (s *testHotSchedulerSuite) TestGCPendingOpInfos(c *C) {
for i := 0; i < len(opCreaters); i++ {
for j, typ := range typs {
regionID := uint64(i*len(opCreaters) + j + 1)
if i < 2 { // nilOp, shouldRemoveOp
if i < 1 { // shouldRemoveOp
c.Assert(hb.regionPendings, Not(HasKey), regionID)
} else { // notDoneOp, doneOp
c.Assert(hb.regionPendings, HasKey, regionID)
Expand Down

0 comments on commit bbf0b37

Please sign in to comment.