Skip to content

Commit

Permalink
tiny fix
Browse files Browse the repository at this point in the history
Signed-off-by: HunDunDM <hundundm@gmail.com>
  • Loading branch information
HunDunDM authored and ti-chi-bot committed Dec 19, 2022
1 parent abbee92 commit 11b84a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/schedule/operator/step_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -569,8 +569,8 @@ func (suite *operatorStepTestSuite) check(step OpStep, desc string, testCases []
err := step.CheckInProgress(suite.cluster, region)
testCase.CheckInProgress(err)
_ = step.GetCmd(region, true)
switch step.(type) {
case ChangePeerV2Leave:

if _, ok := step.(ChangePeerV2Leave); ok {
// Ref https://github.com/tikv/pd/issues/5788
pendingPeers := region.GetLearners()
region = region.Clone(core.WithPendingPeers(pendingPeers))
Expand Down

0 comments on commit 11b84a5

Please sign in to comment.