From 71979b7030dbf4d1a3f669c9dfbe3d6c4113badd Mon Sep 17 00:00:00 2001 From: Joyce Ma Date: Tue, 6 Feb 2024 05:28:42 +0000 Subject: [PATCH] Fix MockService for mockapikeys --- mockgcp/mockapikeys/service.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mockgcp/mockapikeys/service.go b/mockgcp/mockapikeys/service.go index a50a5d0ecf..e2583fabca 100644 --- a/mockgcp/mockapikeys/service.go +++ b/mockgcp/mockapikeys/service.go @@ -16,6 +16,7 @@ package mockapikeys import ( "context" + "net/http" "github.com/GoogleCloudPlatform/k8s-config-connector/mockgcp/common" "github.com/GoogleCloudPlatform/k8s-config-connector/mockgcp/common/operations" @@ -59,7 +60,7 @@ func (s *MockService) Register(grpcServer *grpc.Server) { pb.RegisterApiKeysServer(grpcServer, s.v2) } -func (s *MockService) NewHTTPMux(ctx context.Context, conn *grpc.ClientConn) (*runtime.ServeMux, error) { +func (s *MockService) NewHTTPMux(ctx context.Context, conn *grpc.ClientConn) (http.Handler, error) { mux := runtime.NewServeMux() if err := pb.RegisterApiKeysHandler(ctx, mux, conn); err != nil {