Skip to content

Commit

Permalink
Merge branch 'master' into add_tso_split_test
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot committed Apr 19, 2023
2 parents 0ce3944 + 70b77cd commit 8b5a5d7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/integrations/mcs/discovery/register_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
"context"
"strconv"
"testing"
"time"

"github.com/stretchr/testify/suite"
bs "github.com/tikv/pd/pkg/basicserver"
Expand Down Expand Up @@ -106,6 +107,9 @@ func (suite *serverRegisterTestSuite) checkServerRegister(serviceName string) {
endpoints, err = discovery.Discover(client, suite.clusterID, serviceName)
re.NoError(err)
re.Empty(endpoints)
testutil.Eventually(re, func() bool {
return !s.IsServing()
}, testutil.WithWaitFor(3*time.Second), testutil.WithTickInterval(50*time.Millisecond))
}

func (suite *serverRegisterTestSuite) TestServerPrimaryChange() {
Expand Down

0 comments on commit 8b5a5d7

Please sign in to comment.