Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
Signed-off-by: lhy1024 <admin@liudos.us>
  • Loading branch information
lhy1024 committed Sep 28, 2024
1 parent 6a7abdf commit 19c0f04
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/integrations/mcs/scheduling/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,11 @@ func (suite *apiTestSuite) checkFollowerForward(cluster *tests.TestCluster) {
defer func() {
leader := cluster.GetLeaderServer()
cli := leader.GetEtcdClient()
testutil.Eventually(re, func() bool {
ctx, cancel := context.WithTimeout(context.Background(), time.Second)
defer cancel()
return etcdutil.IsHealthy(ctx, cli)
})
testutil.Eventually(re, func() bool {
_, err = etcdutil.RemoveEtcdMember(cli, follower.GetServerID())
if err != nil {
Expand Down

0 comments on commit 19c0f04

Please sign in to comment.