-
Notifications
You must be signed in to change notification settings - Fork 9.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
feat: raft/log_unstable_test use testify packages in tests #14795
Conversation
Codecov Report
@@ Coverage Diff @@
## main #14795 +/- ##
==========================================
- Coverage 75.79% 75.50% -0.29%
==========================================
Files 457 457
Lines 37377 37341 -36
==========================================
- Hits 28329 28196 -133
- Misses 7288 7372 +84
- Partials 1760 1773 +13
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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 (non-binding)
78808d4
to
f20922f
Compare
@falser101 The linearzability failure is resolved in another PR, so please rebase this PR. |
Signed-off-by: jianfei.zhang <[email protected]>
f20922f
to
de6b579
Compare
rebased! |
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
Thank you @falser101
@ptabor please help review,thanks |
cc @tbg |
t.Errorf("snap = %v, want %v", u.snapshot, &s) | ||
} | ||
require.Equal(t, s.Metadata.Index+1, u.offset) | ||
require.Zero(t, len(u.entries)) |
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.
for next time: require.Zero(t, u.entries)
is better because it will print the slice if it's not empty.
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.
ok!
Signed-off-by: jianfei.zhang [email protected]
Fixed #14709