Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testutil: refine operator_check #2887

Merged
merged 1 commit into from
Sep 3, 2020

Conversation

HunDunDM
Copy link
Member

@HunDunDM HunDunDM commented Sep 3, 2020

Signed-off-by: Zheng Xiangsheng hundundm@gmail.com

What problem does this PR solve?

This is a child PR of #2886

For details, please refer to #2860

What is changed and how it works?

  • Use dot import for the check package
  • Add missing Assert

Check List

Tests

  • Unit test

Release note

  • No release note

Signed-off-by: Zheng Xiangsheng <hundundm@gmail.com>
@HunDunDM HunDunDM self-assigned this Sep 3, 2020
@HunDunDM HunDunDM added the component/testing CI testing. label Sep 3, 2020
Copy link
Contributor

@Yisaer Yisaer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ti-srebot ti-srebot added the status/LGT1 Indicates that a PR has LGTM 1. label Sep 3, 2020
}

// CheckRemovePeer checks if the operator is to remove peer on specified store.
func CheckRemovePeer(c *check.C, op *operator.Operator, storeID uint64) {
func CheckRemovePeer(c *C, op *operator.Operator, storeID uint64) {
c.Assert(op, NotNil)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the missing Assert

Copy link
Member

@JmPotato JmPotato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ti-srebot ti-srebot removed the status/LGT1 Indicates that a PR has LGTM 1. label Sep 3, 2020
@ti-srebot ti-srebot added the status/LGT2 Indicates that a PR has LGTM 2. label Sep 3, 2020
@nolouch
Copy link
Contributor

nolouch commented Sep 3, 2020

/merge

@ti-srebot ti-srebot added the status/can-merge Indicates a PR has been approved by a committer. label Sep 3, 2020
@ti-srebot
Copy link
Contributor

/run-all-tests

@ti-srebot ti-srebot merged commit 2fefcef into tikv:master Sep 3, 2020
@HunDunDM HunDunDM deleted the joint/refine-operator-check branch September 3, 2020 05:29
@HunDunDM HunDunDM mentioned this pull request Sep 3, 2020
37 tasks
HunDunDM added a commit to HunDunDM/pd that referenced this pull request Sep 16, 2020
Signed-off-by: Zheng Xiangsheng <hundundm@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/testing CI testing. status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants