-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
storage: etcd: use cmp.Diff for comparisons #108187
storage: etcd: use cmp.Diff for comparisons #108187
Conversation
/assign |
2c973c7
to
07e641a
Compare
This commit simply modernizes the comparisons made in the storage tests to use `cmp.Diff()` so that pointer comparisons and length checks do not have to be made by hand. We also get nice diffs in the test output this way instead of large pasted blobs. Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
@smarterclayton done |
07e641a
to
dfdd486
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: smarterclayton, stevekuznetsov The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This commit simply modernizes the comparisons made in the storage tests
to use
cmp.Diff()
so that pointer comparisons and length checks do nothave to be made by hand. We also get nice diffs in the test output this
way instead of large pasted blobs.
Signed-off-by: Steve Kuznetsov skuznets@redhat.com
/kind cleanup
/sig api-machinery
/cc @deads2k @liggitt @enj