Function with cyclomatic complexity higher than threshold GO-R1005
Anti-pattern
Minor
1 occurrence in this check
func TestFixOrphanPeerWithDisconnectedStoreAndRuleChangedWithLearner has a cyclomatic complexity of 17 with "high" risk
 896}
 897
 898// Ref https://github.com/tikv/pd/issues/7249 https://github.com/tikv/tikv/issues/15799
 899func (suite *ruleCheckerTestSuite) TestFixOrphanPeerWithDisconnectedStoreAndRuleChangedWithLearner() { 900	// disconnect any three stores and change rule to 3 replicas
 901	// and there is a learner in the disconnected store.
 902	stores := []uint64{1, 2, 3, 4, 5, 6}