From b08e36eeb9c18991fab5a98d456eae76f4f570b5 Mon Sep 17 00:00:00 2001 From: Patrick Hunziker Date: Sun, 27 Sep 2020 18:31:46 +0200 Subject: [PATCH] Fix staticcheck failure for vendor/k8s.io/client-go/discovery/cached/memory --- hack/.staticcheck_failures | 1 - .../k8s.io/client-go/discovery/cached/memory/memcache_test.go | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/hack/.staticcheck_failures b/hack/.staticcheck_failures index c85de44fc73..30bc554d771 100644 --- a/hack/.staticcheck_failures +++ b/hack/.staticcheck_failures @@ -50,7 +50,6 @@ vendor/k8s.io/apiserver/plugin/pkg/authenticator/token/webhook vendor/k8s.io/apiserver/plugin/pkg/authorizer/webhook vendor/k8s.io/cli-runtime/pkg/printers vendor/k8s.io/client-go/discovery -vendor/k8s.io/client-go/discovery/cached/memory vendor/k8s.io/client-go/dynamic/fake vendor/k8s.io/client-go/metadata/fake vendor/k8s.io/client-go/rest diff --git a/staging/src/k8s.io/client-go/discovery/cached/memory/memcache_test.go b/staging/src/k8s.io/client-go/discovery/cached/memory/memcache_test.go index f8c2900cbb0..4a910931c3c 100644 --- a/staging/src/k8s.io/client-go/discovery/cached/memory/memcache_test.go +++ b/staging/src/k8s.io/client-go/discovery/cached/memory/memcache_test.go @@ -95,6 +95,9 @@ func TestClient(t *testing.T) { if err != nil { t.Errorf("Unexpected error: %v", err) } + if e, a := fake.groupList, g; !reflect.DeepEqual(e, a) { + t.Errorf("Expected %#v, got %#v", e, a) + } if !c.Fresh() { t.Errorf("Expected fresh.") }