-
Notifications
You must be signed in to change notification settings - Fork 725
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: add more info for TestDisableSchedulingServiceFallback #8946
Conversation
Signed-off-by: bufferflies <[email protected]>
Skipping CI for Draft Pull Request. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #8946 +/- ##
==========================================
- Coverage 76.32% 76.27% -0.06%
==========================================
Files 463 463
Lines 70474 70474
==========================================
- Hits 53792 53751 -41
- Misses 13339 13375 +36
- Partials 3343 3348 +5
Flags with carried forward coverage won't be shown. Click here to find out more. |
Signed-off-by: bufferflies <[email protected]>
testutil.Eventually(re, func() bool { | ||
re.NotNil(suite.pdLeader.GetServer()) | ||
re.NotNil(suite.pdLeader.GetServer().GetRaftCluster()) | ||
return suite.pdLeader.GetServer().GetRaftCluster().IsSchedulingControllerRunning() |
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.
how about return suite.pdLeader.GetServer()!=nil && suite.pdLeader.GetServer().GetRaftCluster()!=nil && suite.pdLeader.GetServer().GetRaftCluster().IsSchedulingControllerRunning()
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.
I just want to see who is nil.
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.
re.NotNil
also will make test unstable
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.
how about change titile to test: add more info for TestDisableSchedulingServiceFallback
?
@bufferflies: You cannot manually add or delete the reviewing state labels, only I and the tursted members have permission to do so. In response to adding label named lgtm. 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 |
@bufferflies: We have migrated to builtin 👉 Please use
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. |
@@ -106,7 +106,7 @@ func (suite *serverTestSuite) TestAllocIDAfterLeaderChange() { | |||
re := suite.Require() | |||
re.NoError(failpoint.Enable("github.com/tikv/pd/pkg/mcs/scheduling/server/fastUpdateMember", `return(true)`)) | |||
pd2, err := suite.cluster.Join(suite.ctx) | |||
re.NoError(err) | |||
re.NoError(err, "error: %v", err) |
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.
If it fails, it will print the error. So why do you add this?🤔
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lhy1024, okJiang 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 |
What problem does this PR solve?
Issue Number: ref #8926
What has changed and how does it work?
Check List
Tests
Code changes
Side effects
Related changes
Release note