Skip to content

Commit

Permalink
resourcemanager: make TestResourceManagerServer more stable (#8418)
Browse files Browse the repository at this point in the history
close #8417

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

Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
  • Loading branch information
HuSharp and ti-chi-bot[bot] authored Jul 19, 2024
1 parent 1c86ddb commit c514937
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/integrations/mcs/resourcemanager/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import (
rmpb "github.com/pingcap/kvproto/pkg/resource_manager"
"github.com/stretchr/testify/require"
"github.com/tikv/pd/client/grpcutil"
bs "github.com/tikv/pd/pkg/basicserver"
"github.com/tikv/pd/pkg/utils/tempurl"
"github.com/tikv/pd/pkg/versioninfo"
"github.com/tikv/pd/tests"
Expand All @@ -49,6 +50,7 @@ func TestResourceManagerServer(t *testing.T) {
s, cleanup := tests.StartSingleResourceManagerTestServer(ctx, re, leader.GetAddr(), tempurl.Alloc())
addr := s.GetAddr()
defer cleanup()
tests.WaitForPrimaryServing(re, map[string]bs.Server{addr: s})

// Test registered GRPC Service
cc, err := grpcutil.GetClientConn(ctx, addr, nil)
Expand Down

0 comments on commit c514937

Please sign in to comment.