From e017436bef8be3cf12907d5a2386d31b24151b3d Mon Sep 17 00:00:00 2001 From: Antoine Pelisse Date: Fri, 10 May 2019 14:58:22 -0700 Subject: [PATCH] Fix missing pdb in test --- pkg/registry/core/pod/storage/eviction_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/registry/core/pod/storage/eviction_test.go b/pkg/registry/core/pod/storage/eviction_test.go index ced919f9184..83590a22f95 100644 --- a/pkg/registry/core/pod/storage/eviction_test.go +++ b/pkg/registry/core/pod/storage/eviction_test.go @@ -251,7 +251,7 @@ func TestEvictionDryRun(t *testing.T) { t.Error(err) } - client := fake.NewSimpleClientset() + client := fake.NewSimpleClientset(tc.pdbs...) evictionRest := newEvictionStorage(storage.Store, client.PolicyV1beta1()) eviction := &policy.Eviction{ObjectMeta: metav1.ObjectMeta{Name: "foo", Namespace: "default"}, DeleteOptions: tc.evictionOptions} _, err := evictionRest.Create(testContext, eviction, nil, tc.requestOptions)