From b8c855877ff874904970d76af71dfac61591a74e Mon Sep 17 00:00:00 2001 From: Jordan Liggitt Date: Tue, 23 Sep 2025 11:34:58 -0400 Subject: [PATCH] Drop unnecessary gogo dependencies Kubernetes-commit: 840aa4722e982cfaac5d76735909035d06312c06 --- discovery/discovery_client_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/discovery/discovery_client_test.go b/discovery/discovery_client_test.go index 7f3698069..6b94edf6d 100644 --- a/discovery/discovery_client_test.go +++ b/discovery/discovery_client_test.go @@ -25,13 +25,13 @@ import ( "testing" "time" - "github.com/gogo/protobuf/proto" openapi_v2 "github.com/google/gnostic-models/openapiv2" openapi_v3 "github.com/google/gnostic-models/openapiv3" "github.com/google/go-cmp/cmp" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" golangproto "google.golang.org/protobuf/proto" + apidiscovery "k8s.io/api/apidiscovery/v2" apidiscoveryv2beta1 "k8s.io/api/apidiscovery/v2beta1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" @@ -533,7 +533,7 @@ func openapiSchemaFakeServer(t *testing.T) (*httptest.Server, error) { return } - output, err := proto.Marshal(returnedOpenAPI()) + output, err := golangproto.Marshal(returnedOpenAPI()) if err != nil { errMsg := fmt.Sprintf("Unexpected marshal error: %v", err) w.WriteHeader(http.StatusInternalServerError)