-
Notifications
You must be signed in to change notification settings - Fork 726
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
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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) | ||
err = pd2.Run() | ||
re.NotEmpty(suite.cluster.WaitLeader()) | ||
re.NoError(err) | ||
|
@@ -261,6 +261,8 @@ func (suite *serverTestSuite) TestDisableSchedulingServiceFallback() { | |
|
||
// API server will execute scheduling jobs since there is no scheduling server. | ||
testutil.Eventually(re, func() bool { | ||
re.NotNil(suite.pdLeader.GetServer()) | ||
re.NotNil(suite.pdLeader.GetServer().GetRaftCluster()) | ||
return suite.pdLeader.GetServer().GetRaftCluster().IsSchedulingControllerRunning() | ||
Comment on lines
263
to
266
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. how about There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. how about change titile to |
||
}) | ||
leaderServer := suite.pdLeader.GetServer() | ||
|
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?🤔