Skip to content

Commit e017436

Browse files
author
Antoine Pelisse
committed
Fix missing pdb in test
1 parent e1f0526 commit e017436

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/registry/core/pod/storage/eviction_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ func TestEvictionDryRun(t *testing.T) {
251251
t.Error(err)
252252
}
253253

254-
client := fake.NewSimpleClientset()
254+
client := fake.NewSimpleClientset(tc.pdbs...)
255255
evictionRest := newEvictionStorage(storage.Store, client.PolicyV1beta1())
256256
eviction := &policy.Eviction{ObjectMeta: metav1.ObjectMeta{Name: "foo", Namespace: "default"}, DeleteOptions: tc.evictionOptions}
257257
_, err := evictionRest.Create(testContext, eviction, nil, tc.requestOptions)

0 commit comments

Comments
 (0)