diff --git a/server/grpc/server_test.go b/server/grpc/server_test.go index 07e2bb85c3..8cc51e0a5b 100644 --- a/server/grpc/server_test.go +++ b/server/grpc/server_test.go @@ -12,7 +12,6 @@ import ( "github.com/jhump/protoreflect/grpcreflect" "google.golang.org/grpc" "google.golang.org/grpc/metadata" - rpb "google.golang.org/grpc/reflection/grpc_reflection_v1alpha" "github.com/cosmos/cosmos-sdk/client" reflectionv1 "github.com/cosmos/cosmos-sdk/client/grpc/reflection" @@ -110,12 +109,11 @@ func (s *IntegrationTestSuite) TestGRPCServer_Reflection() { // Test server reflection ctx, cancel := context.WithTimeout(context.Background(), 15*time.Second) defer cancel() - stub := rpb.NewServerReflectionClient(s.conn) // NOTE(fdymylja): we use grpcreflect because it solves imports too // so that we can always assert that given a reflection server it is // possible to fully query all the methods, without having any context // on the proto registry - rc := grpcreflect.NewClient(ctx, stub) + rc := grpcreflect.NewClientAuto(ctx, s.conn) services, err := rc.ListServices() s.Require().NoError(err)