-
Notifications
You must be signed in to change notification settings - Fork 85
Conversation
Signed-off-by: tison <wander4096@gmail.com>
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
Signed-off-by: tison <wander4096@gmail.com>
defer db.Close() | ||
require.NoError(t, err) | ||
defer func() { | ||
_ = db.Close() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why some are converted to require.NoError(t, x.Close())
while these are left as _ = x.Close()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because several cases fail with require.NoError(t, x.Close())
. The original code doesn't check the err but it is a net win we check it if tests are well written. For those failed, I don't have time to investigate deeply.
Co-authored-by: kennytm <kennytm@gmail.com>
Signed-off-by: tison <wander4096@gmail.com>
Co-authored-by: kennytm <kennytm@gmail.com>
Signed-off-by: tison <wander4096@gmail.com>
Signed-off-by: tison <wander4096@gmail.com>
Signed-off-by: tison <wander4096@gmail.com>
Signed-off-by: tison <wander4096@gmail.com>
Signed-off-by: tison <wander4096@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/cc @kennytm would you like to give another look? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rest LGTM
Signed-off-by: tison <wander4096@gmail.com>
@lichunzhu updated. PTAL |
The group imports in other files are also not in the same style. But it seems not a big problem? Or do we have lint tools to do this job easily? |
@lichunzhu I think they are in the same style "goimports" while goimports doesn't have a strict rule to group imports as much as possible. |
BTW, pingcap/tidb also use goimports |
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
In response to a cherrypick label: new pull request created: #347. |
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
In response to a cherrypick label: new pull request created: #348. |
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
In response to a cherrypick label: new pull request created: #349. |
In response to a cherrypick label: cannot checkout |
/cherry-pick release-5.2 |
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
@lichunzhu: new pull request created: #364. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
What problem does this PR solve?
pingcap/check is no longer under maintenance, migrate to testify.
This PR can be somewhat regarded as a subtask of pingcap/tidb#26022
This closes #346 .
Release note