Skip to content

Commit

Permalink
test: add more info for TestDisableSchedulingServiceFallback (tikv#8946
Browse files Browse the repository at this point in the history
)

ref tikv#8926

Signed-off-by: bufferflies <[email protected]>

Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
  • Loading branch information
bufferflies and ti-chi-bot[bot] authored Dec 26, 2024
1 parent c2f72ac commit 4d8009d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/integrations/mcs/scheduling/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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()
})
leaderServer := suite.pdLeader.GetServer()
Expand Down

0 comments on commit 4d8009d

Please sign in to comment.