Merge pull request #95098 from phunziker/92402-memcache_test

Fix vendor/k8s.io/client-go/discovery/cached/memory staticcheck
This commit is contained in:
Kubernetes Prow Robot 2020-10-04 11:23:05 -07:00 committed by GitHub
commit 267ba6781e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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.")
}