test: fix DeletePodAndWait failure
This commit is contained in:
parent
938abb306f
commit
8d6a60748b
@ -552,11 +552,9 @@ func (t *TestDeployment) DeletePodAndWait() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
framework.Logf("Waiting for pod %q in namespace %q to be fully deleted", t.podName, t.namespace.Name)
|
framework.Logf("Waiting for pod %q in namespace %q to be fully deleted", t.podName, t.namespace.Name)
|
||||||
err = e2epod.WaitForPodNoLongerRunningInNamespace(t.client, t.podName, t.namespace.Name)
|
err = e2epod.WaitForPodNotFoundInNamespace(t.client, t.podName, t.namespace.Name, e2epod.DefaultPodDeletionTimeout)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if !apierrs.IsNotFound(err) {
|
framework.ExpectNoError(fmt.Errorf("pod %q error waiting for delete: %w", t.podName, err))
|
||||||
framework.ExpectNoError(fmt.Errorf("pod %q error waiting for delete: %v", t.podName, err))
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user