Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
Signed-off-by: HunDunDM <[email protected]>
  • Loading branch information
HunDunDM committed Jan 14, 2022
1 parent 401395c commit 76519b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/schedule/region_scatterer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ func (s *testScatterRegionSuite) TestSelectedStores(c *C) {
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
opt := config.NewTestOptions()
tc := mockcluster.NewCluster(ctx, opt)
tc := mockcluster.NewCluster(opt)
// Add 4 stores.
for i := uint64(1); i <= 4; i++ {
tc.AddRegionStore(i, 0)
Expand Down Expand Up @@ -520,7 +520,7 @@ func isPeerCountChanged(op *operator.Operator) bool {
for i := 0; i < op.Len(); i++ {
step := op.Step(i)
switch step.(type) {
case operator.AddPeer, operator.AddLearner:
case operator.AddPeer, operator.AddLearner, operator.AddLightPeer, operator.AddLightLearner:
add++
case operator.RemovePeer:
remove++
Expand Down

0 comments on commit 76519b2

Please sign in to comment.