automated refactor

Kubernetes-commit: c58e69ec791e4dd8a1298d5c2cc0649cf9176f67
This commit is contained in:
Mike Danese 2020-03-01 09:24:42 -08:00 committed by Kubernetes Publisher
parent a052177169
commit 96c320d500
1 changed files with 1 additions and 1 deletions

View File

@ -241,7 +241,7 @@ func addEvictionSupport(t *testing.T, k *fake.Clientset) {
eviction := *action.(ktest.CreateAction).GetObject().(*policyv1beta1.Eviction)
// Avoid the lock
go func() {
err := k.CoreV1().Pods(eviction.Namespace).Delete(context.TODO(), eviction.Name, &metav1.DeleteOptions{})
err := k.CoreV1().Pods(eviction.Namespace).Delete(context.TODO(), eviction.Name, metav1.DeleteOptions{})
if err != nil {
// Errorf because we can't call Fatalf from another goroutine
t.Errorf("failed to delete pod: %s/%s", eviction.Namespace, eviction.Name)