-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
VReplication: refactor denied tables unit test, add couple more tests #15995
VReplication: refactor denied tables unit test, add couple more tests #15995
Conversation
Signed-off-by: Rohit Nayak <[email protected]>
Signed-off-by: Rohit Nayak <[email protected]>
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Tests
Documentation
New flags
If a workflow is added or modified:
Backward compatibility
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #15995 +/- ##
==========================================
- Coverage 68.47% 68.25% -0.23%
==========================================
Files 1562 1562
Lines 197083 197319 +236
==========================================
- Hits 134962 134678 -284
- Misses 62121 62641 +520 ☔ View full report in Codecov by Sentry. |
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.
Thanks! ❤️
require.Error(t, err) | ||
require.Contains(t, err.Error(), tcase.wantError) |
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.
We can use require.EqualError
to replace both of these checks.
Signed-off-by: Rohit Nayak <[email protected]>
Description
While debugging an issue reported around denied tables, I ended up refactoring a unit test. It turned out the report was on an older version which had been fixed. But thought it worthwhile to push the test changes.
Related Issue(s)
Checklist
Deployment Notes