Skip to content

Commit

Permalink
address comments with Camel case
Browse files Browse the repository at this point in the history
Signed-off-by: lhy1024 <admin@liudos.us>
  • Loading branch information
lhy1024 committed Jul 26, 2024
1 parent 2a45319 commit 2b2570a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pkg/schedule/checker/checker_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func (c *Controller) PatrolRegions() {
if len(key) == 0 {
c.patrolRegionContext.roundUpdateMetrics()
}
failpoint.Inject("break-patrol", func() {
failpoint.Inject("breakPatrol", func() {
failpoint.Break()
})
}
Expand Down
4 changes: 2 additions & 2 deletions server/cluster/cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2843,7 +2843,7 @@ func TestCheckCache(t *testing.T) {

// Add a peer with two replicas.
re.NoError(tc.addLeaderRegion(1, 2, 3))
re.NoError(failpoint.Enable("github.com/tikv/pd/pkg/schedule/checker/break-patrol", `return`))
re.NoError(failpoint.Enable("github.com/tikv/pd/pkg/schedule/checker/breakPatrol", `return`))

// case 1: operator cannot be created due to replica-schedule-limit restriction
co.GetWaitGroup().Add(1)
Expand Down Expand Up @@ -2877,7 +2877,7 @@ func TestCheckCache(t *testing.T) {

co.GetSchedulersController().Wait()
co.GetWaitGroup().Wait()
re.NoError(failpoint.Disable("github.com/tikv/pd/pkg/schedule/checker/break-patrol"))
re.NoError(failpoint.Disable("github.com/tikv/pd/pkg/schedule/checker/breakPatrol"))
}

func TestPeerState(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion server/join/join.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func PrepareJoinCluster(cfg *config.Config) error {

var addResp *clientv3.MemberAddResponse

failpoint.Inject("add-member-failed", func() {
failpoint.Inject("addMemberFailed", func() {
listMemberRetryTimes = 2
failpoint.Goto("LabelSkipAddMember")
})
Expand Down
4 changes: 2 additions & 2 deletions tests/server/join/join_fail/join_fail_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ func TestFailedPDJoinInStep1(t *testing.T) {
re.NotEmpty(cluster.WaitLeader())

// Join the second PD.
re.NoError(failpoint.Enable("github.com/tikv/pd/server/join/add-member-failed", `return`))
re.NoError(failpoint.Enable("github.com/tikv/pd/server/join/addMemberFailed", `return`))
_, err = cluster.Join(ctx)
re.Error(err)
re.Contains(err.Error(), "join failed")
re.NoError(failpoint.Disable("github.com/tikv/pd/server/join/add-member-failed"))
re.NoError(failpoint.Disable("github.com/tikv/pd/server/join/addMemberFailed"))
}

0 comments on commit 2b2570a

Please sign in to comment.