Skip to content

Commit b4d2cb0

Browse files
authored
Merge pull request kubernetes#77763 from apelisse/fix-dry-run-eviction
Dry-run eviction: Fix missing pdb in test
2 parents 74c0c21 + e017436 commit b4d2cb0

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)