mirror of
https://github.com/kubernetes/client-go.git
synced 2025-09-08 18:39:16 +00:00
Fix:import the same package multiple times
Signed-off-by: HaoJie Liu <liuhaojie@beyondcent.com> Kubernetes-commit: 4f0a0ec81c649727cfc62cf8c0a2ad7eabf12516
This commit is contained in:
committed by
Kubernetes Publisher
parent
3b969f9680
commit
2f582c2a40
@@ -34,7 +34,6 @@ import (
|
||||
"k8s.io/apimachinery/pkg/version"
|
||||
"k8s.io/client-go/discovery"
|
||||
"k8s.io/client-go/openapi"
|
||||
"k8s.io/client-go/rest"
|
||||
restclient "k8s.io/client-go/rest"
|
||||
"k8s.io/client-go/rest/fake"
|
||||
testutil "k8s.io/client-go/util/testing"
|
||||
@@ -151,7 +150,7 @@ func TestOpenAPIDiskCache(t *testing.T) {
|
||||
require.Greater(t, len(fakeServer.ServedDocuments), 0)
|
||||
|
||||
client, err := NewCachedDiscoveryClientForConfig(
|
||||
&rest.Config{Host: fakeServer.HttpServer.URL},
|
||||
&restclient.Config{Host: fakeServer.HttpServer.URL},
|
||||
discoCache,
|
||||
httpCache,
|
||||
1*time.Nanosecond,
|
||||
|
Reference in New Issue
Block a user