diff --git a/staging/src/k8s.io/client-go/discovery/discovery_client_test.go b/staging/src/k8s.io/client-go/discovery/discovery_client_test.go index 4746fac5b04..057df33e22e 100644 --- a/staging/src/k8s.io/client-go/discovery/discovery_client_test.go +++ b/staging/src/k8s.io/client-go/discovery/discovery_client_test.go @@ -19,7 +19,6 @@ package discovery import ( "encoding/json" "fmt" - "mime" "net/http" "net/http/httptest" "reflect" @@ -484,8 +483,6 @@ func openapiSchemaDeprecatedFakeServer(status int, t *testing.T) (*httptest.Serv return } - mime.AddExtensionType(".pb-v1", "application/com.github.googleapis.gnostic.OpenAPIv2@68f4ded+protobuf") - output, err := proto.Marshal(returnedOpenAPI()) if err != nil { errMsg := fmt.Sprintf("Unexpected marshal error: %v", err) @@ -526,8 +523,6 @@ func openapiSchemaFakeServer(t *testing.T) (*httptest.Server, error) { return } - mime.AddExtensionType(".pb-v1", "application/com.github.googleapis.gnostic.OpenAPIv2@68f4ded+protobuf") - output, err := proto.Marshal(returnedOpenAPI()) if err != nil { errMsg := fmt.Sprintf("Unexpected marshal error: %v", err)