mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-31 16:46:54 +00:00
test: ignore 404 when deleting pods
This commit is contained in:
@@ -1444,7 +1444,10 @@ func testIterativeDeployments(f *framework.Framework) {
|
||||
}
|
||||
name := podList.Items[p].Name
|
||||
framework.Logf("%02d: deleting deployment pod %q", i, name)
|
||||
Expect(c.Core().Pods(ns).Delete(name, nil)).NotTo(HaveOccurred())
|
||||
err := c.Core().Pods(ns).Delete(name, nil)
|
||||
if err != nil && !errors.IsNotFound(err) {
|
||||
Expect(err).NotTo(HaveOccurred())
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user