-
Notifications
You must be signed in to change notification settings - Fork 286
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
test(pkg/pipeline): migrate test-infra to testify for pkg/pipeline pkg #2984
test(pkg/pipeline): migrate test-infra to testify for pkg/pipeline pkg #2984
Conversation
[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. |
/run-kafka-tests |
Codecov Report
@@ Coverage Diff @@
## master #2984 +/- ##
================================================
- Coverage 57.2251% 56.5013% -0.7238%
================================================
Files 163 185 +22
Lines 19453 20442 +989
================================================
+ Hits 11132 11550 +418
- Misses 7261 7729 +468
- Partials 1060 1163 +103 |
@@ -290,12 +281,11 @@ func (n *throwNode) Receive(ctx NodeContext) error { | |||
} | |||
|
|||
func (n *throwNode) Destroy(ctx NodeContext) error { | |||
n.c.Assert(map[int]bool{4: true, 6: true}, check.HasKey, n.index) | |||
require.Contains(n.t, map[int]bool{4: true, 6: true}, n.index) |
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 need to add this rule to the testify.pattern script.
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.
BTW,please remove the release note in the pr body. We need no release note for each pr but a total release note for the whole testify change. @CharlesCheung96
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
@maxshuang: Thanks for your review. The bot only counts approvals from reviewers and higher roles in list, but you're still welcome to leave your comments. 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. |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 8b30c7b
|
/run-kafka-tests |
What problem does this PR solve?
close #2954
What is changed and how it works?
Check List
Tests
Code changes
Side effects
Release note