-
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
tidb-binlog/driver/reader: migrate test-infra to testify #33480
tidb-binlog/driver/reader: migrate test-infra to testify #33480
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. |
producer sarama.SyncProducer | ||
config *sarama.Config | ||
addr string | ||
available bool | ||
topic string | ||
} | ||
|
||
func (to *testOffsetSuite) SetUpSuite(c *C) { | ||
func TestClient(t *testing.T) { | ||
suite.Run(t, new(testOffsetSuite)) |
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.
Please not use the suite
. it will cause the data race in #32747.
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.
Well, I will revise it, mainly because I see that suite is also written in the tidb project.
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 is ok with only one test, if there are multiple tests, should I call the setup function before each test?
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.
Well, I will revise it, mainly because I see that suite is also written in the tidb project.
the other test case have been in the plan that they will be rewritten.
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 is ok with only one test, if there are multiple tests, should I call the setup function before each test?
Yes, You can.
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.
done
Code Coverage Details: https://codecov.io/github/pingcap/tidb/commit/a12b28023507739b1027a219a6b5806f2b64bc2e |
6070a61
to
bfda610
Compare
bfda610
to
e09bc29
Compare
/merge |
This pull request has been accepted and is ready to merge. Commit hash: a12b280
|
What problem does this PR solve?
Issue Number: close #33461
Problem Summary: migrate test-infra to testify
What is changed and how it works?
Check List
Tests
Side effects
Documentation
Release note