-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
kv: fix err check #22994
kv: fix err check #22994
Conversation
kv/mock_test.go
Outdated
@@ -56,7 +56,8 @@ func (s testMockSuite) TestInterface(c *C) { | |||
_, err = transaction.IterReverse(Key("lock")) | |||
c.Check(err, IsNil) | |||
} | |||
transaction.Commit(context.Background()) | |||
// to fix: cannot assert err, e.g. KV error safe to retry %s | |||
_ = transaction.Commit(context.Background()) |
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.
PTAL @tiancaiamao
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.
This code just check the API interface, even if here returns an error, it doesn't matter.
/LGTM Do we do this to enable the lint check for the test code? |
[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 writing |
Yes. |
PTAL @zimulala |
@@ -50,11 +51,13 @@ func (s testMemDBSuite) TestRandom(c *C) { | |||
op := rand.Float64() | |||
if op < 0.35 { | |||
p1.DeleteKey(k) | |||
p2.Delete(k) | |||
// to fix: delete key not found | |||
_ = p2.Delete(k) |
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.
@tiancaiamao
I think we need to check this error.
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.
I think it does not need to be so strict, there is already _ = p2.Put(k, k)
in the previous code. And it is a test case.
/LGTM Please resolve the conflicts |
@tiancaiamao: Please use GitHub review feature instead of For the reason we drop support to the commands, see also this page. 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. |
Signed-off-by: tison <wander4096@gmail.com>
After integrate with current master, it seems Closed. |
What problem does this PR solve?
Issue Number: #22979
Problem Summary:
What is changed and how it works?
What's Changed:
// to fix:
. Needs further action, either ignore these error or fix tests.Check List
Tests
Release note