Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: lhy1024 <[email protected]>
  • Loading branch information
lhy1024 committed Dec 19, 2024
1 parent cbc71a6 commit cce5a2f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/tso_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ func (tc *TestTSOCluster) WaitForPrimaryServing(re *require.Assertions, keyspace
return false
}, testutil.WithWaitFor(30*time.Second), testutil.WithTickInterval(100*time.Millisecond))
testutil.Eventually(re, func() bool {
if tc.pd.GetLeaderServer() == nil {
return false
}
return tc.pd.GetLeaderServer().GetRaftCluster().IsServiceIndependent(constant.TSOServiceName)
})
return primary
Expand Down

0 comments on commit cce5a2f

Please sign in to comment.